// Use this for initialization void Start() { playerObject = GameObject.FindGameObjectWithTag("Player"); keyAllowanceScript = playerObject.GetComponent <MG3and4_MovementScript> (); //keyAllowanceScript.ActivateKey ("Right"); //keyAllowanceScript.ActivateKey ("Up"); //keyAllowanceScript.ActivateKey ("Left"); }
// Use this for initialization void Start() { playerObject = GameObject.FindGameObjectWithTag("Player"); keyAllowanceScript = playerObject.GetComponent <MG3and4_MovementScript> (); }