예제 #1
0
 public void OnInteract(SquadType interactorSquadType)
 {
     if (PlaceHolder is null)
     {
         Character.ActiveCharacter?.OnTapOnCeil(IsHighlighted ? this : null);
     }
     else
     {
         var character = PlaceHolder.GetComponent <Character>();
         if (Character.ActiveCharacter is null)
         {
             character.OnInteract(interactorSquadType);
         }
         else
         {
             Character.ActiveCharacter?.OnTapOnCeil(IsHighlighted ? this : null);
         }
     }
 }