/// <summary> /// Called by Unity or <see cref="Initialize"/>. Initializes <see langword="this"/> if <see cref="Rig"/> exists. /// </summary> public void Awake() { // Check rig existance. if (Rig == null) { return; } // Initialize rig. Rig.Controller = this; for (var i = 0; i < Rig.SubRigs.Length; ++i) { Rig.SubRigs[i].Rig = Rig; } Parameters = this.FindCubismModel().Parameters; Rig.Initialize(); }