Exemple #1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            GUI.enabled = Application.isPlaying;

            GameActionManagerAsset scriptableGameState = target as GameActionManagerAsset;

            if (GUILayout.Button("On Value Changed"))
            {
                scriptableGameState.OnValueChanged();
            }
        }