// Start is called before the first frame update void Start() { hovered = GetComponent <MouseSelectable>().hovered; outline = GetComponent <Outline>(); mouseSelectable = GetComponent <MouseSelectable>(); rigidBody = GetComponent <Rigidbody>(); // for (int slotNumber = 0; slotNumber < 3; slotNumber++) // { // slots[slotNumber] = transform.GetChild(slotNumber+1); // GameObject basket = Instantiate(Resources.Load("Prefabs/Objects/Basket_Crate"), slots[slotNumber].position, Quaternion.identity) as GameObject; // basket.transform.SetParent(transform); // baskets.Add(basket); // } }
// Use this for initialization private void Start() { hovered = GetComponent <MouseSelectable>().hovered; outline = GetComponent <Outline>(); mouseSelectable = GetComponent <MouseSelectable>(); }
// Start is called before the first frame update void Start() { mouseSelectable = GetComponent <MouseSelectable>(); outline = GetComponent <Outline>(); pallet = transform.parent.GetComponent <Pallet>(); }
// Start is called before the first frame update void Start() { mouseSelectable = GetComponent <MouseSelectable>(); outline = GetComponent <Outline>(); stockCage = transform.parent.GetComponent <StockCage>(); }