public void SetState(EnumPlantSpotState newState, int parentIntanceID) { if (parentIntanceID != this.transform.parent.gameObject.GetInstanceID()) { Debug.LogError("You are trying to change the state of a a gameplant that isnt yours;"); } _plantSpotState = newState; }
protected override void SetInitialValues() { _playerState = GameObject.FindObjectOfType <PlayerStateManager>(); _inputManager = GameObject.FindObjectOfType <InputManager>(); _animator = this.GetComponent <Animator>(); _animatorVariables = new PlantSpotAnimatorVariables(); _plantSpotState = EnumPlantSpotState.Empty; _uiManager = GameObject.FindObjectOfType <UIManager>(); _internalCanvas.enabled = false; if (_radioToInteract == 0) { _radioToInteract = 0.1f; } }
public void PlantThisSeed(ItemDTO itemDto) { _plantComponent.SetPlant(itemDto); _plantSpotState = EnumPlantSpotState.HasPlant; }
public void ResetPlantSpot() { _plantComponent.RemovePlant(); _plantSpotState = EnumPlantSpotState.Empty; }