Пример #1
0
    public Clock() : base("Sprites/Clock.png")
    {
        SetOrigin(width / 2, height / 2);
        SetXY(game.width - width / 2, height / 2);

        _text = new ClockText(this.width, this.height);
        AddChild(_text);
    }
Пример #2
0
    void Start()
    {
        GameObject temp = GameObject.Find("ClockText");

        if (temp != null)
        {
            ct = temp.GetComponent <ClockText>();
        }
    }
Пример #3
0
 void ReleaseDesignerOutlets()
 {
     if (ClockText != null)
     {
         ClockText.Dispose();
         ClockText = null;
     }
     if (DialogNavText != null)
     {
         DialogNavText.Dispose();
         DialogNavText = null;
     }
     if (IncrementButton != null)
     {
         IncrementButton.Dispose();
         IncrementButton = null;
     }
     if (NavigateButton != null)
     {
         NavigateButton.Dispose();
         NavigateButton = null;
     }
     if (SendMessageButton != null)
     {
         SendMessageButton.Dispose();
         SendMessageButton = null;
     }
     if (ShowDialogButton != null)
     {
         ShowDialogButton.Dispose();
         ShowDialogButton = null;
     }
     if (WelcomeText != null)
     {
         WelcomeText.Dispose();
         WelcomeText = null;
     }
 }