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