// Use this for initialization void Start() { currentPlayer = GameObject.FindWithTag("Player").GetComponent<Multiplayer_Entity>(); }
void OnDestroy() { if (_instance == this) { _instance = null; _initialized = false; _audio_source = null; // Clear static fields. Player = null; player_entity = null; target_spawn = null; OrbitCam = null; debug_show_progress = false; lst_disable_hotkeys_on_focus.Clear(); idle_time = 0.0f; } }