public static void SetState(PersistentTriggerStateBase obj, bool state = true) { SetState(new PropertyName(obj.gameObject.scene.name).GetHashCode(), obj.SceneIndex, state); }
public static bool GetState(PersistentTriggerStateBase obj) { return GetState(new PropertyName(obj.gameObject.scene.name).GetHashCode(), obj.SceneIndex); }