예제 #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;
    }