Beispiel #1
0
    void Start()
    {
        gameObNisty    = GameObject.FindGameObjectWithTag("nisty");
        fuerzaY        = gameObNisty.GetComponent <nistyMov>();
        dirigirImpulso = fuerzaY.velocidad;
        //Audio del muro
        rompermuro = GetComponent <AudioSource>();

        fuerzaY.velocidad.x = 0;
        dashing             = false;

        muroGameObj = GameObject.FindGameObjectWithTag("Muro");
    }
Beispiel #2
0
 void Start()
 {
     Nisty     = GameObject.FindGameObjectWithTag("nisty");
     nistyComp = Nisty.GetComponent <nistyMov>();
 }
Beispiel #3
0
 //Vector2 velocidad;
 void Start()
 {
     Nisty       = GameObject.FindGameObjectWithTag("nisty");
     mover       = Nisty.GetComponent <nistyMov>();
     controlador = Nisty.GetComponent <CharacterController>();
 }