Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        myRB      = GetComponent <Rigidbody>();
        thePlayer = thePlayer.GetComponent <Player_mov>();

        if (!(inputmanager = this.GetComponent <Input_manager>()))
        {
            inputmanager = this.gameObject.AddComponent <Input_manager>();
        }
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     myRB      = GetComponent <Rigidbody>();
     thePlayer = thePlayer.GetComponent <Player_mov>();
 }