Exemplo n.º 1
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.T))
     {
         shootAction = ShootTransform;
     }
     if (Input.GetKeyDown(KeyCode.Y))
     {
         shootAction = ShootPhysics;
     }
     if (Input.GetKeyDown(KeyCode.U))
     {
         shootAction = ShootRaycast;
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     shootAction = ShootPhysics;
     GetComponent <CharacterAim_Base>().OnShoot += PlayerShootProjectiles_OnShoot;
 }