Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        clock          = this.GetComponent <Clock>();
        clock.IsFrozen = false;
        hour           = clock.GetClockHour();
        minute         = clock.GetClockMinute();

        cP = GUICheckpoint.inst;
        cP.Toggle(false);
        journal = Journal.inst;
    }
Beispiel #2
0
    void Awake()
    {
        if (inst == null)
        {
            inst = this;
        }
        else
        {
            Destroy(this);
        }

        canvasGroup = GetComponent <CanvasGroup>();
    }