// Update is called once per frame void Update () { if (gameStats == null) { gameStats = FindObjectOfType<GameStats> (); transform.position = gameStats.GetInitialPosition (); } }
// Update is called once per frame void Update () { if (gameStats == null) { gameStats = FindObjectOfType<GameStats> (); heartScript.SetHearts (gameStats.GetHealth ()); initPos = gameStats.GetInitialPosition (); } }