Exemplo n.º 1
0
    internal void TimeParadox(TimeParadoxCause cause)
    {
        switch (behaviourOnTimeParadox)
        {
        case TimeParadoxBehaviour.NoEffect:
            break;

        case TimeParadoxBehaviour.DebugLog:
            DebugLogTimeParadox(cause);
            break;

        case TimeParadoxBehaviour.ReloadScene:
            DebugLogTimeParadox(cause);
            game.ReloadCurrentLevel();
            break;
        }
        ;
    }
Exemplo n.º 2
0
 void DebugLogTimeParadox(TimeParadoxCause cause)
 {
     Debug.Log($"Time paradox! Cause: {cause}");
 }