|
@@ -137,9 +137,39 @@ public class SpiritSystem : MonoBehaviour
|
|
|
}
|
|
}
|
|
|
player1cards[s.hasSpirits].sprite = newHead;
|
|
player1cards[s.hasSpirits].sprite = newHead;
|
|
|
s.hasSpirits++;
|
|
s.hasSpirits++;
|
|
|
|
|
+ if (s.hasSpirits == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ s.currentSpirit = s.TranSpirit(spirit);
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
case 1:
|
|
case 1:
|
|
|
- curCheckSpirit2.SetActive(false);
|
|
|
|
|
|
|
+ curCheckSpirit2.transform.parent.gameObject.SetActive(false);
|
|
|
|
|
+ Spirits ss = PlayersInput.instance[0].GetComponent<Spirits>();
|
|
|
|
|
+ ss.ownSpirits[ss.hasSpirits] = ss.TranSpirit(spirit);
|
|
|
|
|
+ Sprite newHead2 = NoneHead;
|
|
|
|
|
+ switch (spirit)
|
|
|
|
|
+ {
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ newHead2 = floatHead;
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ newHead2 = AssassinHead;
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ newHead2 = CookHead;
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 3:
|
|
|
|
|
+ newHead2 = InvisibleHead;
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ player1cards[ss.hasSpirits].sprite = newHead2;
|
|
|
|
|
+ ss.hasSpirits++;
|
|
|
|
|
+ if (ss.hasSpirits == 1)
|
|
|
|
|
+ {
|
|
|
|
|
+ ss.currentSpirit = ss.TranSpirit(spirit);
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
break;
|
|
break;
|