예제 #1
0
 // Use this for initialization
 void Start()
 {
     if (Controller == null)
     {
         Controller = (ISphereController)transform.parent.GetComponent(typeof(ISphereController));
     }
     if (Controller == null)
     {
         Debug.LogError("Couldn't grab ISphereController.");
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     Controller = (ISphereController)SphereController.GetComponent(typeof(ISphereController));
 }