// Use this for initialization void Start() { apm = GameObject.FindObjectOfType <ActionPointManager>(); selectedCard = ""; CardSelected = false; cardCount = 0; GetHandCardSlots(); }
void Start() { child = transform.gameObject; market = FindObjectOfType <Market>(); activeHand = GameObject.FindGameObjectWithTag("Hand_Active").GetComponent <Hand>(); passiveHand = GameObject.FindGameObjectWithTag("Hand_Passive").GetComponent <PassiveCardHandler>(); apm = GameObject.FindObjectOfType <ActionPointManager>(); }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(instance); } DontDestroyOnLoad(instance); }
// Use this for initialization void Start() { marketCards = GameObject.FindObjectOfType <Market>().cards; //finds the active in slot 1 of the game objects activeHand = GameObject.FindObjectsOfType <Hand>()[1]; tileImage = GetComponent <Image>(); foreach (GameObject card in marketCards) { possibleActiveImages.Add(card.GetComponent <Image>()); } apm = GameObject.FindObjectOfType <ActionPointManager>(); ach = GameObject.FindObjectOfType <ActiveCardHandler>(); CanHighlight = false; }