private void Start() { singleton = this; cardActiveZone = transform.Find("CardActiveZone"); cardQueueZone = transform.Find("CardQueueZone"); cardOnwersPlaceholder = transform.Find("CardServiceZone").Find("OwnerPlaceholder"); cardTargetPlaceholder = transform.Find("CardServiceZone").Find("TargetPlaceholder"); cardServicePlaceholder = transform.Find("CardServiceZone").Find("ServicedCardPlaceholder"); }
void Awake() { table = GameObject.Find("Table").GetComponent <Table>(); parent = GameObject.Find("MainParentObj"); deck = GameObject.Find("Deck").GetComponent <Deck>(); hdz = this.GetComponent <HandDropZone>(); tdz = this.GetComponent <TableDropZone>(); gameObject.transform.SetParent(parent.transform); }
// Use this for initialization private void Awake() { objectPool = EZObjectPool.CreateObjectPool(itemIndicatorPrefab, "DropZoneObjectPool", 5, true, true, true); //if (!instance) //{ instance = this; //DontDestroyOnLoad(gameObject); //} }