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