Esempio n. 1
0
    private Switch _switch;                                    //a number switch

    void Start()
    {
        _switch        = new Switch();               //makes a new switch
        _switch.maxNum = _positionSwitch.Length - 1; //max the max num of the switch 2
        _triggers      = GetComponent <TriggerComponentHolder>();
        _input         = GetComponent <WeaponsInputProcessor>();
    }
Esempio n. 2
0
    private Vector3 _velocityState;                                     //Private Vector3 for the current Velocity


    // Use this for initialization
    void Start()
    {
        _input          = GameObject.Find("GameController").GetComponent <InputHandler> ();     //Find the GameControllers InputHandler
        _health         = GetComponent <HealthHandler> ();                                      //Find the HealthHandler
        _healthAnimator = GetComponent <HealthAnimator>();
        _move           = GetComponent <MovementHandler> ();                                    //Find the MovementHandler
        _shoot          = GetComponentInChildren <WeaponsInputProcessor> ();                    //Find the ShootHandler
        _trigger        = GetComponent <TriggerHandler> ();                                     //Find the TriggerHandler
        _collision      = GetComponent <CollisionHandler>();
    }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     _animator = GetComponent <Animator> ();
     _shoot    = GetComponentInChildren <WeaponsInputProcessor> ();
     _move     = GetComponentInParent <MovementHandler> ();
 }