Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     inputs = new Shooter();
     inputs.Enable();
     inputs.Player.Move.performed  += OnMovePerfomed;
     inputs.Player.Move.canceled   += OnMoveCanceled;
     inputs.Player.Shoot.performed += OnShootPerformed;
     corps = GetComponent <Rigidbody2D>();
 }
Exemple #2
0
 private void OnSetUpIdleUntilShoot()
 {
     Shooter.Enable();
     subject.StartMovableEffect();
 }