예제 #1
0
    public override void Enter()
    {
        _bullsound = GetComponent<BullSound>();
        bullBehaviour = GetComponent<BullBehaviour> ();
        prepare = GetComponent<StatePrepare> ();

        _CurrentTarget = prepare.targetPlayer.transform.position;
        bullBehaviour.isCharging = true;
    }
 void Start()
 {
     _playersounds = GetComponent<PlayerSounds>();
     _rigidbody          = GetComponent<Rigidbody>();
     _bullsound = GetComponent<BullSound>();
     if (this.tag == Tags.PLAYER)
     {
         _inputToggle    = GetComponent<ToggleEnableInput>();
     }
 }
 public override void Enter()
 {
     bullbehaviour = GetComponent<BullBehaviour> ();
     _bullsound = GetComponent<BullSound>();
     bullbehaviour.isCharging = false;
     bullbehaviour.acceleration (1000f);
     bullbehaviour.setSpeed (0f);
     BullAnimator.BullAnimation(5);
     StartCoroutine (WaitAndRecover (4.0f));
 }
    void Start()
    {
        _playersounds = GetComponent<PlayerSounds>();
        _bullSound = GetComponent<BullSound>();
        if (this.tag == Tags.PLAYER)
        {
            _movement       = GetComponent<PlayerMovement>();
            _inputToggle    = GetComponent<ToggleEnableInput>();
        }

        if(this.tag == Tags.BULL || this.tag == Tags.PLAYER)
        {
            _adjustHealth   = GetComponent<AdjustHealth>();
        }
        if (this.tag == Tags.PICKUP)
        {
            _pickUp         = GetComponent<HealthPickup>();

        }
    }