Beispiel #1
0
 void Start()
 {
     inventory        = GameObject.Find("PlayerShip").GetComponent <Inventory>();
     shopTilesUI      = inventory.shopDisplay.GetComponentInChildren <ShopTilesUI>();
     inventoryDisplay = inventory.inventory;
     shopDisplay      = inventory.shopDisplay;
     text             = GetComponent <Text>();
     playerShip       = GameObject.Find("PlayerShip");
     toolTip          = playerShip.GetComponent <PlayerScript>().obstacleToolTip;
     itemTemplates    = GameObject.Find("ItemTemplates").GetComponent <ItemTemplates>();
     toolTip          = inventory.toolTip;
     whatDungeonLevel = FindObjectOfType <DungeonEntryDialogueManager>().whatDungeonLevel;
     spawnSellingItems();
     SetAnimation();
 }
Beispiel #2
0
 void Start()
 {
     itemTemplates = FindObjectOfType <ItemTemplates>();
     inventory     = GameObject.Find("PlayerShip").GetComponent <Inventory>();
     shopTilesUI   = shopDisplay.GetComponentInChildren <ShopTilesUI>();
     playerShip    = GameObject.Find("PlayerShip");
     if (priceMultiplier == 0)
     {
         setSellingItemsList(false);
     }
     else
     {
         setSellingItemsList(true);
     }
     toolTip = inventory.toolTip;
     spawnSellingItems();
     SetAnimation();
 }
Beispiel #3
0
 void Start()
 {
     inventory   = GameObject.Find("PlayerShip").GetComponent <Inventory>();
     toolTip     = inventory.toolTip;
     shopTilesUI = transform.parent.GetComponent <ShopTilesUI>();
 }