// Update is called once per frame
    void Update()
    {
        if (isTimer != true)
        {
            if (isStopwatch != true)
            {
                c.Condition = is24HourNotation;

                SetActiveBehaviour(c);
            }
            else
            {
                SetActiveBehaviour(s);
            }
        }
        else
        {
            //SetActiveBehaviour(t);
        }

        if (activeBehaviour != null)
        {
            if (text != null)
            {
                C_Time time = activeBehaviour.C_Update();

                text.text = time.CurrentTime;
            }
        }
        //TODO
        //Check bool states here - add/remove behaviours as necessary
    }
Ejemplo n.º 2
0
    public override void Init()
    {
        isStopwatchTriggered = true;
        stopwatch            = new Stopwatch();
        c_Time = new C_Time();

        stopwatch.ToggleStopwatch(isStopwatchTriggered);
    }
Ejemplo n.º 3
0
        public FrmApp()
        {
            InitializeComponent();


            pJS = new JS_Engine();


            pSYS  = new C_SYS(this);
            pUI   = new C_UI(this);
            pTime = new C_Time(this);



            if (FrmApp.pIndex == null)
            {
                FrmApp.pIndex = new C_Index(this);
            }

            if (FrmApp.pTCP == null)
            {
                FrmApp.pTCP = new C_TCP();
            }
        }
Ejemplo n.º 4
0
 public override void Init()
 {
     is24HourNotation = Condition;
     c_Time           = new C_Time();
 }