Ejemplo 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");
 }
Ejemplo 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);
 }
Ejemplo 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);
        //}
    }