Beispiel #1
0
 public void Fire()
 {
     shot();
     fireController.RemoveFireContoller();
     fireController = null;
     TimersManager.SetTimer(this, WeaponReloadTime, () => { SetFireController(); });
 }
Beispiel #2
0
 public Player SetFireController()
 {
     fireController      = Object.gameObject.AddComponent <PlayerFireController>();
     fireController.shot = Fire;
     return(this);
 }