コード例 #1
0
 protected override void ValidateValues()
 {
     if (_spawnSpot is null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_spawnSpot), this.gameObject.name));
     }
 }
コード例 #2
0
 protected override void ValidateValues()
 {
     if (!_stomachSlotComponentList.Any())
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_stomachSlotComponentList), this.gameObject.name));
     }
 }
コード例 #3
0
ファイル: ItemManager.cs プロジェクト: vkaike2/Joguito
 protected override void ValidateValues()
 {
     if (_inputManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_inputManager), this.gameObject.name));
     }
 }
コード例 #4
0
 protected override void ValidateValues()
 {
     if (_uiManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_uiManager), this.gameObject.name));
     }
     _inventoryDraggableItemComponnent = GameObject.FindObjectOfType <InventoryDraggableItemComponent>();
 }
コード例 #5
0
 protected override void ValidateValues()
 {
     if (_animator == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_animator), this.gameObject.name));
     }
     if (_plantSpotComponent == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_plantSpotComponent), this.gameObject.name));
     }
 }
コード例 #6
0
 protected override void ValidateValues()
 {
     if (_image == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_image), this.gameObject.name));
     }
     if (_cdwDigestionBar == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_cdwDigestionBar), this.gameObject.name));
     }
 }
コード例 #7
0
 protected override void ValidateValues()
 {
     if (_image == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_image), this.gameObject.name));
     }
     if (_inventorySlotComponent == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_inventorySlotComponent), this.gameObject.name));
     }
 }
コード例 #8
0
 protected override void ValidateValues()
 {
     // => Required Fields
     if (_playerState == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_playerState), this.gameObject.name));
     }
     if (_inputManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_inputManager), this.gameObject.name));
     }
 }
コード例 #9
0
ファイル: UIManager.cs プロジェクト: vkaike2/Joguito
 protected override void ValidateValues()
 {
     if (!_actionSlotComponentlist.Any())
     {
         Debug.LogError("UIManager need to have at least one ActionSlot");
     }
     if (_actionSlotComponentlist.Count() != 4)
     {
         Debug.LogError("This manager is prepared to have only 4 slots!");
     }
     if (_inputManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_inputManager), this.gameObject.name));
     }
 }
コード例 #10
0
 protected override void ValidateValues()
 {
     if (_currentImage == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_currentImage), this.gameObject.name));
     }
     if (_draggableItem == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_draggableItem), this.gameObject.name));
     }
     if (_txtAmount == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_txtAmount), this.gameObject.name));
     }
 }
コード例 #11
0
 protected override void ValidateValues()
 {
     if (_canMoveByClick && _movementMouseComponent is null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_movementMouseComponent), this.gameObject.name));
     }
     if (_canInteract && _interactableComponent is null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_interactableComponent), this.gameObject.name));
     }
     if (_canPoop && _stomachComponent is null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_stomachComponent), this.gameObject.name));
     }
 }
コード例 #12
0
 protected override void ValidateValues()
 {
     if (_inputManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_inputManager), this.gameObject.name));
     }
     if (_playerState == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_playerState), this.gameObject.name));
     }
     if (_animator == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_animator), this.gameObject.name));
     }
     if (_txtItemName == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_txtItemName), this.gameObject.name));
     }
 }
コード例 #13
0
ファイル: PlantSpotComponent.cs プロジェクト: vkaike2/Joguito
 protected override void ValidateValues()
 {
     if (_animator == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_animator), this.gameObject.name));
     }
     if (_inputManager == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_inputManager), this.gameObject.name));
     }
     if (_playerState == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_playerState), this.gameObject.name));
     }
     if (_plantComponent == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_plantComponent), this.gameObject.name));
     }
     if (_internalCanvas == null)
     {
         Debug.LogError(ValidatorUtils.ValidateNullAtGameObject(nameof(_internalCanvas), this.gameObject.name));
     }
 }