private void Awake() { if (onLevelBegin == null) { onLevelBegin = new OnLevelBegin(); } if (onLevelLose == null) { onLevelLose = new OnLevelLose(); } if (onLevelEnd == null) { onLevelEnd = new OnLevelEnd(); } }
public static void BeginLevel() { OnLevelBegin?.Invoke(); }