예제 #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;
     }
 }
예제 #2
0
 private void Awake()
 {
     shootAction = ShootPhysics;
     GetComponent <CharacterAim_Base>().OnShoot += PlayerShootProjectiles_OnShoot;
 }