Пример #1
0
    private guiSetup score; // Reference to the Score script.

    #endregion Fields

    #region Methods

    // Use this for initialization
    void Awake()
    {
        anim = GetComponent<Animator>();
        ren = GetComponent<SpriteRenderer> ();
        score = GameObject.Find("guiSetup").GetComponent<guiSetup>();
        frontCheck = transform.Find("FrontCheck").transform;
    }
Пример #2
0
 void Awake()
 {
     getScore = GameObject.Find ("guiSetup").GetComponent<guiSetup> ();
     pauser = GameObject.Find ("Pauser").GetComponent<Pauser> ();
     score1 = PlayerPrefs.GetInt ("Score1");
     score2 = PlayerPrefs.GetInt ("Score2");
     score3 = PlayerPrefs.GetInt ("Score3");
     score4 = PlayerPrefs.GetInt ("Score4");
 }
Пример #3
0
 // Use this for initialization
 void Awake()
 {
     score = GameObject.Find("guiSetup").GetComponent<guiSetup>();
 }