Exemplo n.º 1
0
    public void ChangeController(GameObject player)
    {
        bool isLab = (Data.Type == TowerData.BuildingType.Lab);

        if (isLab)
        {
            Data.ControllerData.LooseLab();
        }

        Data.SetController(player);

        Particles.PlaySwitchjoueur();

        Appearance.ActualizeBody();

        UI.ActualizeLayer();

        if (isLab)
        {
            Data.ControllerData.GetLab();
        }

        if (Data.Type == TowerData.BuildingType.Firewall)
        {
            FWTrigger.ActualizeController();
        }
    }