void Start() { player = GameObject.FindGameObjectWithTag("Player"); playerScript = player.GetComponent<PlayerScriptDeven>(); scrptInput = playerScript.scrptInput; // GameObject.FindGameObjectWithTag("GameManager").GetComponent<GameManager>(); }
// Use this for initialization void Start() { vOriginalScale = transform.localScale; scriptPSD = goMyPlayer.GetComponent<PlayerScriptDeven>(); }
// Use this for initialization void Start() { vOriginalScale = transform.localScale; scriptPSD = goMyPlayer.GetComponent <PlayerScriptDeven>(); }