//当功能改变时 private void OnModuleChanged(FlashButton button) { if (button == null) { return; } Debug.LogFormat("<><EasyTestView.OnModuleChanged>Current module{0}", button.Operation); if (button.Operation == Operations.Close) { this.Fade(false); return; } this.navigator.Visible = false; this.operation = button.Operation; switch (button.Operation) { case Operations.Pet: case Operations.Animation: this.Fade(false); break; case Operations.Dress: this.subNavigator.Visible = true; break; } }
//当装扮改变时 private void OnDressChanged(FlashButton button) { if (button == null) { return; } Debug.LogFormat("<><EasyTestView.OnDressChanged>Current dress: {0}", button.Operation); this.operation = button.Operation; if (this.operation == Operations.Back) { this.operation = Operations.Dress; this.navigator.Visible = true; this.subNavigator.Visible = false; } else { this.subNavigator.Visible = false; this.Fade(false); this.Select(); } }