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