Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            /*
             * Ex:
             * var myvar = new MyClass();
             * myvar.MyMethod();
             *
             * var Darray = new DemoArray();
             * Darray.ArraySample();
             */

            //var DList = new DemoList();
            //DList.ListSample();


            //var ExercistList = new Lists();
            //ExercistList.Exercise5();


            //var DDatetime = new DemoDateTime();
            //DDatetime.DateTimeSample();

            //var DTimeSpan = new DemoTimeSpan();
            //DTimeSpan.SampleTimeSpan();

            //var DString = new DemoString();
            //DString.SampleString();

            //var DSummerize = new DemoSummarisingText();
            //DSummerize.SampleSumerize();

            //var DStringBuilder = new DemoStringBuilder();
            //DStringBuilder.SampleStringBuilder();


            //var ExercistString = new Strings();
            //ExercistString.Exercise5();

            //var DDirectory = new DemoDirectory();
            //DDirectory.SampleDirectory();


            var DPath = new DemoPath();

            DPath.SamplePath();
        }
Ejemplo n.º 2
0
    protected void Demo()
    {
        if ( Manager == null )
            return;
        if ( Manager.Camera == null )
            return;	// No camera ?? WTH ?
        if ( Orch == null )
            return;	// No orchestrator... Can't demo...

        // Increase demo time
        m_DemoTime += DEMO_SPEED * Nuaj.NuajTime.DeltaTime;

        // Go through next demo path if needed
        while ( m_DemoPath == null || m_DemoTime > m_DemoPath.Duration )
        {
            if ( m_DemoPath != null )
            {
                m_DemoPath.Reset();	// For next time we use it...
                m_DemoTime -= m_DemoPath.Duration;
            }
            m_DemoPathIndex = (m_DemoPathIndex+1) % m_DemoPaths.Length;
            m_DemoPath = m_DemoPaths[m_DemoPathIndex];
        }

        // Apply demo path
        m_DemoPath.Apply( Manager, m_Orch, m_DemoTime );

        // Simulate lightning
        UpdateLightning();
    }