Skip to content

LanguageManager should not call Destroy if Application.isEditor is true #90

Description

@FlorianGlawogger

LanguageManager Awake methode: only call Destroy in the Awake function if Application.isEditor is false, otherwise you can get a (harmless but annoying) error:
grafik

i.e. change

else if (Instance != this)
{
    Destroy(gameObject);
}

to

else if (Instance != this && !Application.isEditor)
{
    Destroy(gameObject);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

defectBroken feature or bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions