// Use this for initialization void Start() { dishSocket = GetComponentInChildren <StackUpObjectM> (); allDishTables.Add(this); CreateDish(); CreateDish(); CreateDish(); CreateDish(); }
protected void Start() { agent = GetComponent <NavMeshAgent> (); trans = transform; handSocket = GetComponentInChildren <StackUpObjectM>(); }