//private PocketStatus.Pocket pocket; private void Start() { // player = FindObjectOfType<Player>(); pocketStatus = gameObject.transform.root.GetComponent <PocketStatus>(); panelImage = transform.GetChild(0).GetComponent <Image>(); itemCheck = false; }
private void Start() { pocketStatus = FindObjectOfType <PocketStatus>(); customSlot = GameObject.Find("custom_panel"); customslot_c = customSlot.GetComponentInChildren <Transform>(); batsu = this.transform.GetChild(1).gameObject; // myItemStatus = FindObjectOfType<MyItemStatus>(); }
public static string IsCurrentStatus(this PocketViewmodel model, PocketStatus status) { return IsCurrentStatus(model, status.ToString()); }