private void CheckForGroundBlood() { GroundBloodChecker groundBloodChecker = slime.groundBloodChecker; if (groundBloodChecker.IsOnBloodlessGround()) { DoShrink(); } }
// Start is called before the first frame update void Start() { this.animator = GetComponent <Animator>(); this.characterController = GetComponent <CharacterController2D>(); this.animationManager = new AnimationManager(animator, this); this.groundBloodChecker = GetComponentInChildren <GroundBloodChecker>(); this.groundChecker = GetComponentInChildren <GroundChecker>(); this.state = State.PATROLLING; this._collider = GetComponent <BoxCollider2D>(); FaceMovementDirection(); }