private void Start() { myCollider = GetComponent<BoxCollider> (); colliderOriginalSize = myCollider.size; myTransform = transform; dragFloor = GameObject.FindWithTag("Floor"); dragFloorCollider = dragFloor.GetComponent<Collider>(); snapperObject = GetComponent<SnapItemToCloserPosition>(); }
private void Awake() { dragFloor = GameObject.FindWithTag("Floor"); myTransform = transform; snapperObject = GetComponent<SnapItemToCloserPosition>(); highlightObject = GetComponent<HighlightObject> (); myAnimator = GetComponentInChildren<Animator>(); }
protected virtual void Awake() { myTransform = transform; snaper = GetComponent<SnapItemToCloserPosition> (); dragObject = GetComponent<DraggableObject> (); controllerToStop = GetComponent<TotemControllerStop> (); highlightObject = GetComponent<HighlightObject> (); myAnimator = GetComponentInChildren<Animator>(); validTypes.Add (TotemType.Triangle); validTypes.Add (TotemType.Sphere); validTypes.Add (TotemType.Square); }