コード例 #1
0
        public GameObject BulletPrefab;               //Assign in Inspector

        void    LocalPlayerFire()
        {
            if (mFireCooldown.Cool(Time.deltaTime) && Input.GetKey(KeyCode.Space))
            {
                CmdFire();              //Work out where bullet should appear and how fast it should go
            }
        }