Exemplo n.º 1
0
 void OnMouseDown()
 {
     if (IsActive)
     {
         // Flash right
         StartCoroutine("FlashRight");
         CoderWeapon.TargetKey(this);
     }
     else
     {
         // Flash wrong and turn off
         StartCoroutine("FlashWrong");
         CoderWeapon.TargetKey(this);
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }