Example #1
0
 // Use this for initialization
 void Start()
 {
     cs          = GetComponent <CharactorItems>();
     ItemManager = GameObject.FindGameObjectWithTag("ItemManager").GetComponent <ItemManager>();
     Slot1       = GameFacade.Instance.GetCurrentPanel().transform.Find("KnapsackPanel/SlotPanel/Slot").GetComponent <Slot>();
     Slot2       = GameFacade.Instance.GetCurrentPanel().transform.Find("KnapsackPanel/SlotPanel/Slot (1)").GetComponent <Slot>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     charactorItems = GetComponent <CharactorItems>();
     rb             = transform.GetComponent <Rigidbody>();
     playerInfo     = GetComponent <PlayerInfo>();
 }