Exemplo n.º 1
0
 void OnTriggerExit(Collider other)
 {
     if (other.gameObject.tag.Equals(Constants.KeyTag))
     {
         Assert.IsNotNull(_trackedKey);
         _trackedKey = null;
     }
     ;
 }
Exemplo n.º 2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag.Equals(Constants.KeyTag))
     {
         Assert.IsNull(_trackedKey);
         var key = other.gameObject.GetComponent <KeyScriptOC>();
         Assert.IsNotNull(key);
         _trackedKey = key;
     }
     ;
 }