public void ShipDestroyed(ShipBehaviour ship, ShipBehaviour killer)
 {
     if (ship.GetComponent <PlayerManager>())
     {
         EndSession();
     }
     else if (killer.GetComponent <PlayerManager>())
     {
         GetPoint();
     }
 }
示例#2
0
 private void Start()
 {
     ship.GetComponent <MovementController>().OnSpeedChange += ChangeSpeed;
     ship.OnCountFreePlaneChanged += ChangePlaneCount;
     ship.OnCreatePlane           += ChangeCreatePlaneCount;
 }
示例#3
0
 private void Start()
 {
     ship.GetComponent <CreatePlane>().OnNewPlane     += CreatePlaneUi;
     ship.GetComponent <InputController>().OnShowInfo += ShowInfo;
 }