// 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."); } }
// Use this for initialization void Start() { Controller = (ISphereController)SphereController.GetComponent(typeof(ISphereController)); }