protected virtual void Awake() { // point static value to this script, works if there are only one script running in scene if (_instance == null) { _instance = this; } }
// Start is called before the first frame update protected virtual void Start() { RTScenter = RTS_Centralization.Instance; RTScenter.newOrder += ReceiveNewOrder; }