Skip to content

Instantly share code, notes, and snippets.

@Naoya42

Naoya42/Gun.cs Secret

Created January 24, 2022 06:48
Show Gist options
  • Save Naoya42/e07832ad4916d2c647628f9d226b5ab8 to your computer and use it in GitHub Desktop.
Save Naoya42/e07832ad4916d2c647628f9d226b5ab8 to your computer and use it in GitHub Desktop.
銃のオブジェクト実装
using UnityEngine;
public class Gun : MonoBehaviour
{
[Tooltip("射撃間隔")]
public float shootInterval = .1f;
[Tooltip("威力")]
public int shotDamage;
[Tooltip("覗き込み時のズーム")]
public float adsZoom;
[Tooltip("覗き込み時の速度")]
public float adsSpeed;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment