// Use this for initialization void Start() { UIBtnChangePanel btn = gameObject.GetComponent <UIBtnChangePanel>(); if (isLock) { btn.AddValueChangedDelegate(UIUnlocked); } else { btn.AddValueChangedDelegate(SetCurrentBoss); } }
// Use this for initialization void Start() { // coins = PlayerPrefs.GetInt("coinNum"); UIBtnChangePanel btn = gameObject.GetComponent <UIBtnChangePanel>(); if (isLocked) { btn.AddValueChangedDelegate(UIUnlocked); } else { btn.AddValueChangedDelegate(SetCurrentProps); } }
public override void Copy(SpriteRoot s, ControlCopyFlags flags) { base.Copy(s, flags); if (!(s is UIBtnChangePanel)) { return; } UIBtnChangePanel uIBtnChangePanel = (UIBtnChangePanel)s; if ((flags & ControlCopyFlags.Settings) == ControlCopyFlags.Settings) { this.panelManager = uIBtnChangePanel.panelManager; this.changeType = uIBtnChangePanel.changeType; this.panel = uIBtnChangePanel.panel; } }