Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     _malusTimerInitializer = 20f;
     _malusTimer            = _malusTimerInitializer;
     _dayLight = DayLightScript.script;
     _score    = GameObject.Find("Player").GetComponent <ScoreScript>();
 }
Пример #2
0
    private void Awake()
    {
        if (script != null)
        {
            Debug.Log("Error: multiple instances of DayLightScript.");
            return;
        }

        script = this;
    }