public void SetIndicator(bool b, GridOccupantBehaviour player, MeleeWeapon defaultWeapon) { _melee = defaultWeapon; _player = player; _isActive = b; if (b) { SetMode(MouseMode.Moving); OnNewMode(MouseMode.Moving); if (_node != null) { OnNewNode(_node.Value); } } else { uiTilemap.ClearAllTiles(); highlightedUiTilemap.ClearAllTiles(); } }
private void Awake() { Occupant = GetComponent <GridOccupantBehaviour>(); }
protected override void Awake() { base.Awake(); _collisionBehaviour = GetComponent <OnCollisionBehaviour>(); _occupant = GetComponent <GridOccupantBehaviour>(); }