Пример #1
0
    public void InitializeShip(int shipNumber)
    {
        ship = GameManager.ObjectPooler.Get <ShipController>().GetComponent <ShipController>();
        ship.SetPlayer(this);

        if (shipInfo == null)
        {
            return;
        }

        shipInfo.InitializeShip(ship, shipNumber);
        ResetShipPosition();
        ship.SetRotationTarget((int)respawnPoint.rotation.eulerAngles.z);
        //onConnectionClose = null;
    }