protected void Awake()
    {
        _sprayAttack = this.SearchComponent <SprayAttack>();

        _rend = GetComponent <SpriteRenderer>();
        _coll = GetComponent <Collider2D>();
        _rb   = GetComponent <Rigidbody2D>();

        gameObject.SetActive(false);
    }
Example #2
0
 public SprayingState(AttackStateMachine ASM, SprayAttack sprayAttack) : base(ASM, sprayAttack)
 {
 }
Example #3
0
 protected SprayAttackState(AttackStateMachine ASM, SprayAttack sprayAttack) : base(ASM)
 {
     _sprayAttack = sprayAttack;
 }