public void RegisterController(ShadowController controller) { if (this.shadowControllers == null) this.shadowControllers = new Dictionary<string, ShadowController>(); if (this.boneKeys == null) this.InitBoneKeys(); string name = controller.GetType().ToString(); this.shadowControllers[name] = controller; controller.shadow = new Shadow(this.transform, controller); // The controller is now ready to wake up controller.ControlledAwake(); }
public void RegisterController(ShadowController controller) { if (this.shadowControllers == null) { this.shadowControllers = new Dictionary <string, ShadowController>(); } if (this.boneKeys == null) { this.InitBoneKeys(); } string name = controller.GetType().ToString(); this.shadowControllers[name] = controller; controller.shadow = new Shadow(this.transform, this.hips, controller); // The controller is now ready to wake up controller.ControlledAwake(); }