Пример #1
0
 void Start()
 {
     TotenEvents.GetInstance().onTotenTriggerEnter += OnTotenActivates;
     TotenEvents.GetInstance().onTotenTriggerExit  += OnTotenDeactivates;
     _material = GetComponent <Renderer>().material;
 }
Пример #2
0
 private void OnTriggerExit(Collider other)
 {
     TotenEvents.GetInstance().TotenTriggerExit(id);
 }