public void Enter() { if (loopLock.Unlocked) { using (loopLock.Lock()) { var data = Shortcuts.users.current.gameNodesData_PerUser.TryGet(ClassTag); if (data.IsEmpty == false) { this.DecodeFull(data); } data = parentNode.parentBook.gameNodesConfigs.TryGet(ClassTag); if (data.IsEmpty == false) { this.DecodeFull(data); } else { Debug.Log("No per book data for. {0}".F(ClassTag)); } VisualLayer.FromNodeToGame(this); results.Apply(); OnEnter(); } } }
//public TaggedTypesCfg AllTypes => all; #endregion #region Enter & Exit public override bool OnMouseOver(bool click) { if (click && parentNode != null) { VisualLayer.FromNodeToGame(this); return(true); } return(false); }
public void FailExit() { //Debug.Log("Exiting Game Node Without Saving"); if (loopLock.Unlocked) { using (loopLock.Lock()) { OnExit(); VisualLayer.FromGameToNode(true); } } }
public override bool InspectInList(IList list, int ind, ref int edited) { IndexForPEGI.ToString().write(20); bool changed = this.inspect_Name(); if (icon.Play.Click("Enter Game Node")) { VisualLayer.FromNodeToGame(this); } return(changed); }
public void Exit() { if (loopLock.Unlocked) { using (loopLock.Lock()) { OnExit(); Shortcuts.users.current.gameNodesData_PerUser[ClassTag] = Encode_PerUserData().CfgData; parentNode.parentBook.gameNodesConfigs[ClassTag] = Encode_PerBookStaticData().CfgData; VisualLayer.FromGameToNode(); _onExitResults.Apply(); } } }