Esempio n. 1
0
 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");
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
    // Use this for initialization
    private void Awake()
    {
        objectPool = EZObjectPool.CreateObjectPool(itemIndicatorPrefab, "DropZoneObjectPool", 5, true, true, true);

        //if (!instance)
        //{
        instance = this;
        //DontDestroyOnLoad(gameObject);
        //}
    }