// 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>(); } }
// Use this for initialization void Start() { myRB = GetComponent <Rigidbody>(); thePlayer = thePlayer.GetComponent <Player_mov>(); }