Esempio n. 1
0
 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;
 }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 public void PlantThisSeed(ItemDTO itemDto)
 {
     _plantComponent.SetPlant(itemDto);
     _plantSpotState = EnumPlantSpotState.HasPlant;
 }
Esempio n. 4
0
 public void ResetPlantSpot()
 {
     _plantComponent.RemovePlant();
     _plantSpotState = EnumPlantSpotState.Empty;
 }