Exemple #1
0
 // Use this for initialization
 void Start()
 {
     instance              = this;
     currentQuestNumber    = 0;
     isOpenCraftMenu       = false;
     theItemEffectDatabase = FindObjectOfType <ItemEffectDatabase>();
 }
Exemple #2
0
 void Start()
 {
     theItemEffectDatabase = FindObjectOfType <ItemEffectDatabase>();
     //Prefab으로 된 Slot은 SerializeField로 선언할 경우 자신의 안에 있는 것들만 참조할 수 있기 때문에 상관없지만
     //밖에 있는 것들은 FindObjectOfType으로 하이어라키에서 검색하는것이 낫다.
     theSlotTooltip = FindObjectOfType <SlotTooltip>();
 }
Exemple #3
0
    void Start()


    {
        theItemEffectDatabase = FindObjectOfType <ItemEffectDatabase>();
        baseRect       = transform.parent.GetComponent <RectTransform>().rect;
        theInputNumber = FindObjectOfType <InputNumber>();
    }
Exemple #4
0
 void Start()
 {
     theInputNumber        = FindObjectOfType <InputNumber>();
     theWeaponManager      = FindObjectOfType <WeaponManager>();
     theItemEffectDatabase = FindObjectOfType <ItemEffectDatabase>();
 }
Exemple #5
0
 void Start()
 {
     //to find it on hierachy
     theItemEffectDatabase = FindObjectOfType <ItemEffectDatabase>();
 }
Exemple #6
0
 void Start()
 {
     theItemEffectDatabase = FindObjectOfType <ItemEffectDatabase>();
 }