Esempio n. 1
0
    private void Tinker()
    {
        time += Time.deltaTime;

        if (time >= TinkerTime)
        {
            Particles.StopTinker();
            Particles.PlayFinished();
            Data.SetLevel(newLevel);
            Data.SetType(newType);
            isOperational = true;
            time          = 0;

            if (newType == TowerData.BuildingType.Lab)
            {
                Data.ControllerData.GetLab();
            }

            else if (newType == TowerData.BuildingType.Firewall)
            {
                UpdateRange();
            }
        }
    }