void ForcePlayerSwitch() { //switch the player to wolf and the players ability to switch. SwitchCharacters _charChanger = FindObjectOfType <SwitchCharacters>(); _charChanger.CharacterLock = !_charChanger.CharacterLock; //Toggle the lock. // print("Boot"); _charChanger.ChangeCharacters(); //Switch the characters. }
private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); }