public void OnEnable() { _poolName = serializedObject.FindProperty("_poolName"); if (poolToSerialize == null) { poolToSerialize = (DevilPool)target; } }
public static void RegisterPool(string name, DevilPool pool) { if (_devilPools.ContainsKey(name)) { Log.Error(MessageGroup.Common, "Current pool is already registered"); return; } if (pool == null) { Log.Error(MessageGroup.Common, "Cannot register pool cause it is null."); return; } _devilPools.Add(name, pool); }