public static TotenEvents GetInstance() { if (_current == null) { _current = new TotenEvents(); } return(_current); }
void Start() { TotenEvents.GetInstance().onTotenTriggerEnter += OnTotenActivates; TotenEvents.GetInstance().onTotenTriggerExit += OnTotenDeactivates; _material = GetComponent <Renderer>().material; }
private void OnTriggerExit(Collider other) { TotenEvents.GetInstance().TotenTriggerExit(id); }