public void ResetData() { PlayerData.instance.SetDefault(); indicators.Apply(); levelBar.Apply(); states.CheckStatesAgain(); }
public void PayBody() { UseBody(); shopBinder.AddBodyIndex(index); centerItem.SetShopItemState(ShopItemState.Unlocked); uiBinder.PayWithCoin(centerItem.Data.bodyData.basicData.requirement); indicatorController.Apply(); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); IndicatorController controller = (IndicatorController)target; EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Apply")) { controller.SetVariables(controller.m_kill, controller.m_coin); controller.Apply(); } if (GUILayout.Button("Reset")) { PlayerData.instance.SetDefault(); controller.Apply(); } EditorGUILayout.EndHorizontal(); }