Exemplo n.º 1
0
    private void SetBasic()
    {
        OldScenario = ScenarioTypes.Basic;

        Selection.Instance.Selectables = new HashSet <Entity>()
        {
            factory.CreateKnight(new Vector3(8.3f, 0f, -20f), Rotation()),
            factory.CreateKnight(new Vector3(-1.3f, 0f, -0.5f), Rotation()),
            factory.CreateKnight(new Vector3(1.2f, 0f, 16.5f), Rotation()),
            factory.CreateKnight(new Vector3(16f, 0f, 2.4f), Rotation(), true)
        };
    }
        private void SetupScenario(ScenarioTypes _scenario)
        {
            scenario = _scenario;

            switch (scenario)
            {
            // Use scenario to manipulate the camera component
            case ScenarioTypes.Skybox:
                InitializeSkybox();
                break;

            case ScenarioTypes.SolidColor:
                InitializeSolidColor(GetSolidColor(currentColor));
                break;

            default:
                Debug.LogWarning("This scenario is not fully supported.");
                break;
            }
        }
Exemplo n.º 3
0
    /*------------------------------------------------------------------*\
    |*							SCENARIOS
    \*------------------------------------------------------------------*/

    private void SetNone()
    {
        OldScenario = ScenarioTypes.None;
    }