private void Awake() { if (instance != null && instance != this) { Destroy(this); } else { instance = this; } }
private void Start() { pMenu = myCanvas.instance.productionMenu; // to disable the unit and building contols when build mode is used. sm = SelectMouse.instance; // to disable the unit and building contols when build mode is used. }