예제 #1
0
 void OnMouseDown()
 {
     print("Num left: " + society.NumInteracting() + " Can interact: " + society.CanInteractWith(this));
     if (!society.CanInteractWith(this))
     {
         return;
     }
     if (state == ExpState.Showing)
     {
         society.RemoveFromSelected(this);
         Deselect();
         return;
     }
     society.AddToSelected(this);
     preJoin = state;
     SetState(ExpState.Showing);
 }