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

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

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