private void Start() { mySphere = sphere.GetComponent <ColoredSphere>(); Player = GameObject.FindWithTag("Player"); myInv = Player.GetComponent <ColorBubbleInventory>(); }
private void Start() { InventoryRef = GameObject.FindWithTag("Player").GetComponent <ColorBubbleInventory>(); //Debug.Log(InventoryRef.Inventory[0].Object.MyColor); }
void Start() { Player = GameObject.FindWithTag("Player"); Inventory = Player.GetComponent <ColorBubbleInventory>(); }
private void Start() { myInv = GameObject.FindWithTag("Player").GetComponent <ColorBubbleInventory>(); }