コード例 #1
0
    // Use this for initialization
    void Start()
    {
        //init the countdown timers
        countdownTimer = new mySimpleTimer.SimpleCountdownTimer();
        countdownTimer.StartMethod(gestureHoldLength,
                                   new mySimpleTimer.SimpleCountdownTimer.TimerEventHandler(TimerZeroEvent));

        demoCountdownTimer = new mySimpleTimer.SimpleCountdownTimer();
        demoCountdownTimer.StartMethod(demoDelay,
                                       new mySimpleTimer.SimpleCountdownTimer.TimerEventHandler(NextGesture));

        systemSounds =
            GameObject.Find(soundGameObjectName).GetComponent <SoundScript>();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        //init the countdown timers
        countdownTimer = new mySimpleTimer.SimpleCountdownTimer();
        countdownTimer.StartMethod(gestureHoldLength,
            new mySimpleTimer.SimpleCountdownTimer.TimerEventHandler(TimerZeroEvent));

        demoCountdownTimer = new mySimpleTimer.SimpleCountdownTimer();
        demoCountdownTimer.StartMethod(demoDelay,
            new mySimpleTimer.SimpleCountdownTimer.TimerEventHandler(NextGesture));

        systemSounds =
            GameObject.Find(soundGameObjectName).GetComponent<SoundScript>();
    }