protected override void Awake() { base.Awake(); _globalGame = FindObjectOfType <GlobalGame>(); _globalGame.AddUnit(this); _numberText.text = $"{number}"; _lastPosition = transform.position; }
protected override void Awake() { base.Awake(); _globalGame = FindObjectOfType <GlobalGame>(); _globalGame.AddUnit(this); _numberText.text = $"{number}"; _lastPosition = transform.position; }