Ejemplo n.º 1
0
    private void OnEnable()
    {
        config        = serializedObject.FindProperty("configuration");
        defaultConfig = serializedObject.FindProperty("defaultConfig");

        configReader = (GameConfigReader)target;
    }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (_instance != null && this != _instance)
     {
         Destroy(gameObject);
         return;
     }
     configPath = Application.streamingAssetsPath + "/Config.xml";
     _instance  = this;
 }