예제 #1
0
 // Use this for initialization
 void Start()
 {
     foreach (Transform child in transform)
     {
         if (child.name == "start" && startObject != null)
         {
             startObject = child;
         }
         if (child.name == "end" && endObject != null)
         {
             endObject = child;
         }
     }
     GetComponent <Collider> ().isTrigger = true;
     objectHeight      = GetComponent <Renderer> ().bounds.size.y;
     objectWidth       = GetComponent <Renderer> ().bounds.size.x;
     reAnimationScript = GetComponent <ReAnimatedObject> ();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     _reAnimationHandler = GetComponent <ReAnimatedObject> ();
 }