void Awake() { Application.targetFrameRate = 60; if (instance == null) { instance = this; DontDestroyOnLoad(this); } else { Destroy(gameObject); } }
public void setInstance() { _instance = this; }