Example #1
0
    void Start()
    {
        numberDrawer = GameObject.Find("Numbers");
        numberTxt    = numberDrawer.GetComponent <NumberTexture> ();
        scale        = 2.0f;
        numberScale  = 4.0f;

        medalManager = GameObject.Find("Medal");
        medalComp    = medalManager.GetComponent <MedalManager> ();
    }
Example #2
0
    void Awake()
    {
        if (Instance == null)
        {
            DontDestroyOnLoad(gameObject);
            Instance = this;
        }
        else if (Instance != this)
        {
            Destroy(gameObject);
        }

        medalTimes = new Dictionary <string, MedalTime>();
        LoadMedalTimes();
    }
Example #3
0
 public void LifeOver()
 {
     m_instance = null;
 }