Пример #1
0
    private TankController CreateNewTank(int index)
    {
        TankScriptableObject tankScriptableObject = tankList.tanks[index];

        Debug.Log("Creating Tank with type: " + tankScriptableObject.TankName);

        TankModel model = new TankModel(tankScriptableObject);
        //TankController tank = new TankController(model, tankView);
        TankController tank = servicePoolTank.GetTank(model, tankView);

        tank.Enable();
        return(tank);
    }