Example #1
0
 public override PTPlayer ApplyTo(PTPlayer player)
 {
     //...
     if (player)
     {
         player.GetComponent <DemoPlayer>().spriteThumbnail.sprite = sprite;
     }
     return(player);
 }
Example #2
0
 protected override bool TurnCanEnd(PTPlayer player)
 {
     return(player.GetComponent <WarPlayer>().hasFlipped);
 }
Example #3
0
 protected override IEnumerator TurnEnd(PTPlayer player)
 {
     player.GetComponent <WarPlayer>().hasFlipped = false;
     yield return(null);
 }