Exemplo n.º 1
0
 /// <summary>
 /// Raises event 'ChangeLabel'
 /// </summary>
 protected virtual void OnChangeLabel()
 {
     if (ChangeLabel != null)
     {
         ChangeLabel.Invoke(this, System.EventArgs.Empty);
     }
 }
 // Use this for initialization
 void Start()
 {
     activation  = GameObject.Find("GameManager").GetComponent <ActivateScript>();
     changeLavel = GameObject.Find("UfoCount").GetComponent <ChangeLabel>();
     missionUfoIconChangeTex01 = GameObject.Find("MissionUfoIcon").GetComponent <ChangeTex01>();
     MissionNumberCreate(missionNumber);
 }
Exemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (ChangeDescriptionLabel != null)
            {
                ChangeDescriptionLabel.Dispose();
                ChangeDescriptionLabel = null;
            }

            if (ChangeLabel != null)
            {
                ChangeLabel.Dispose();
                ChangeLabel = null;
            }

            if (ContentBackgroundView != null)
            {
                ContentBackgroundView.Dispose();
                ContentBackgroundView = null;
            }

            if (HoursLabel != null)
            {
                HoursLabel.Dispose();
                HoursLabel = null;
            }

            if (OriginalLessonLabel != null)
            {
                OriginalLessonLabel.Dispose();
                OriginalLessonLabel = null;
            }

            if (SchoolClassLabel != null)
            {
                SchoolClassLabel.Dispose();
                SchoolClassLabel = null;
            }

            if (SchoolGradientView != null)
            {
                SchoolGradientView.Dispose();
                SchoolGradientView = null;
            }
        }
Exemplo n.º 4
0
 public void Clear()
 {
     m.setState(0);
     ChangeLabel.Invoke(m.getState());
 }
Exemplo n.º 5
0
 public void IncValue()
 {
     m.setState(m.getState() + 1);
     ChangeLabel.Invoke(m.getState());
 }