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