상속: UnityEngine.MonoBehaviour
예제 #1
0
 private void Start()
 {
     myCollider = GetComponent<BoxCollider> ();
     colliderOriginalSize = myCollider.size;
     myTransform = transform;
     dragFloor = GameObject.FindWithTag("Floor");
     dragFloorCollider = dragFloor.GetComponent<Collider>();
     snapperObject = GetComponent<SnapItemToCloserPosition>();
 }
예제 #2
0
 private void Awake()
 {
     dragFloor = GameObject.FindWithTag("Floor");
     myTransform = transform;
     snapperObject = GetComponent<SnapItemToCloserPosition>();
     highlightObject = GetComponent<HighlightObject> ();
     myAnimator = GetComponentInChildren<Animator>();
 }
예제 #3
0
 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);
 }