コード例 #1
0
 void Start()
 {
     Manager.Sound.SetIndex(6);
     FindObjectOfType <Controller>().SetGain(0);
     Manager.Spawn.PurpleFeet(PurpleFeetSpawn.position);
     FeetObject.OnCollision += Feet;
     _turnLeft         = LevelUtilities.GenerateRandomBool();
     _trainingComplete = false;
     Manager.Sound.PlayNextVoiceover(1.0f); //#6 position purple
 }
コード例 #2
0
ファイル: Level2.cs プロジェクト: cnhutton/working_RDW_backup
    void Start()
    {
        FindObjectOfType <Controller>().SetGain(0);
        Manager.Sound.SetIndex(2);
        _completed = false;

        _startingEdge = LevelUtilities.ChooseRandomEdge();
        Manager.Spawn.PurpleFeet(_startingEdge);
        FeetObject.OnCollision += Feet;
        Pointer.Click          += Touchpad;
        _turnLeft = LevelUtilities.GenerateRandomBool();
        Manager.Sound.PlayNextVoiceover(2.0f);
    }
コード例 #3
0
ファイル: Level4.cs プロジェクト: cnhutton/working_RDW_backup
    // ReSharper disable once ArrangeTypeMemberModifiers
    void Start()
    {
        Manager.Sound.SetIndex(10);
        FindObjectOfType <Controller>().SetGain(0);
        Manager.Spawn.PurpleFeet(PurpleFeetSpawn.position);
        FeetObject.OnCollision += Feet;

        AlgorithmManager.Complete += Completed;
        _turnLeft = LevelUtilities.GenerateRandomBool();
        Manager.Experiment.GetAlgorithm(out _algorithm);
        Debug.Log(_algorithm);
        Manager.Algorithm.Initialize(_algorithm);
        Manager.Sound.PlayNextVoiceover(); //#9 Experiment now begins, go to feet
        Pointer.Click += Touchpad;
        SetupInitialCalibration();
    }
コード例 #4
0
    void Start()
    {
        Manager.Sound.SetIndex(11);
        FindObjectOfType <Controller>().SetGain(0);

        _startingEdge = LevelUtilities.ChooseRandomEdge();
        _turnLeft     = LevelUtilities.GenerateRandomBool();
        Manager.Spawn.PurpleFeet(_startingEdge);
        FeetObject.OnCollision += Feet;
        Pointer.Click          += Touchpad;

        useIndividualized = LevelUtilities.GenerateRandomBool();
        usePositive       = LevelUtilities.GenerateRandomBool();
        Manager.Sound.PlayNextVoiceover(2.0f); //#13 position & follow path
        count      = 0;
        totalCount = 0;
        Manager.Experiment.GetWalkthroughAlgorithm(out algorithm);
        Manager.Experiment.GetThreshold(algorithm, out positiveAlg, out negativeAlg);
        negativeAvg = -0.2f;
        positiveAvg = 0.4f;
        SetupFMS();
    }