private void Awake() { alarmLight = GetComponent <Animation>(); mainController = this; path = Application.dataPath + FileName; onSecuritySystemChanged = new SecurityEventLog(); onSecuritySystemChanged.AddListener(WriteLog); onAlarm.AddListener(StartAlarmLights); }