void Awake() { GameObject player1 = GameObject.Find("FPSController"); healthplayer = player1.GetComponent <healthscriptplayer> (); anim = GetComponent <Animator>(); }
// Use this for initialization void Start() { GameObject player1 = GameObject.Find("FPSController"); healthplayer = player1.GetComponent <healthscriptplayer> (); Time.timeScale = 1; hidePaused(); Debug.Log(pauseObjects.Length); }