Пример #1
0
    // Use this for initialization
    void Start()
    {
        platformStartPoint = platformGenerator.position;
        playerStartPoint   = thePlayer.transform.position;

        theScoreManager3 = FindObjectOfType <ScoreManager3>();
    }
Пример #2
0
 // 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>();
 }
Пример #3
0
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     score     = PlayerPrefs.GetInt("score");
     text.text = "X" + score.ToString();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     theScoreManager3 = FindObjectOfType <ScoreManager3>();
     coinSound        = GameObject.Find("maitoo").GetComponent <AudioSource>();
 }