コード例 #1
0
        public float timerCancelFireAfterReload = 0.5f; // Timer set

        void Awake()
        {
            playerAmmo       = gameObject.GetComponent <PlayerAmmo>();
            assaultRifle     = gameObject.GetComponent <WeaponAssaultRifle>();
            playerController = gameObject.GetComponent <PlayerController>();
        }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     playerAmmo = gameObject.GetComponent<PlayerAmmo>();
     assaultRifle = gameObject.GetComponent<WeaponAssaultRifle>();
 }
コード例 #3
0
        public float timerCancelFireAfterReload = 0.5f; // Timer set

        void Awake()
        {
            playerAmmo = gameObject.GetComponent<PlayerAmmo>();
            assaultRifle = gameObject.GetComponent<WeaponAssaultRifle>();
            playerController = gameObject.GetComponent<PlayerController>();
        }