// Use this for initialization void Start() { m_player = FindObjectOfType<PlayerController>(); m_helpTextRenderer = TextObj.GetComponent<Renderer>(); }
public void UndoDontDestroyOnLoad() { s_instance = null; }
protected override void Start() { base.Start(); m_playerCtrl = GameObject.FindObjectOfType<PlayerController>(); phyChar = GetComponent<PhysicCharBehaviour>(); }
void Awake() { if(s_instance == null) { DontDestroyOnLoad(gameObject); s_instance = this; } else { DestroyImmediate(gameObject); } }