public static void Guard() { Int_Intern_Guard.SetActive(true); Image i1 = Int_Intern_Guard1.GetComponent <Image>(); Image i2 = Int_Intern_Guard2.GetComponent <Image>(); Image i3 = Int_Intern_Guard3.GetComponent <Image>(); if (i1 != null) { i1.sprite = CharControl.Card1.CardImage; } if (i1 != null) { i2.sprite = CharControl.Card2.CardImage; } if (i1 != null) { i3.sprite = CharControl.Card3.CardImage; } GameState = 3; }
public static void End() { Int_Intern_Guard.SetActive(false); Int_Intern_End.SetActive(true); GameState = 4; }