// Use this for initialization void Start() { platformStartPoint = platformGenerator.position; playerStartPoint = thePlayer.transform.position; theScoreManager3 = FindObjectOfType <ScoreManager3>(); }
// Start is called before the first frame update void Start() { ObjectManager = GameObject.Find("ObjectManager"); TextManager = GameObject.Find("TextManager"); goal_script = ObjectManager.GetComponent <GoalManager3>(); score_script = TextManager.GetComponent <ScoreManager3>(); count_script = TextManager.GetComponent <CountManager3>(); }
void Start() { if (instance == null) { instance = this; } score = PlayerPrefs.GetInt("score"); text.text = "X" + score.ToString(); }
// Use this for initialization void Start() { theScoreManager3 = FindObjectOfType <ScoreManager3>(); coinSound = GameObject.Find("maitoo").GetComponent <AudioSource>(); }