Ejemplo n.º 1
0
 void Start()
 {
     manager  = GamepadManager.Instance;
     gamepad1 = manager.GetGamepad(1);
     gamepad2 = manager.GetGamepad(2);
     gamepad3 = manager.GetGamepad(3);
     gamepad4 = manager.GetGamepad(4);
 }
Ejemplo n.º 2
0
    void Start()
    {
        gamepadMan = GamepadManager.Instance;
        gamepad1   = gamepadMan.GetGamepad(1);
        gamepad2   = gamepadMan.GetGamepad(2);

        agent1 = player1.agent.transform.parent;
        agent2 = player2.agent.transform.parent;

        agentOriginPos1 = agent1.localPosition;
        agentOriginPos2 = agent2.localPosition;
    }
Ejemplo n.º 3
0
    void Start()
    {
        manager      = GamepadManager.Instance;
        gamepad      = manager.GetGamepad(papa);
        rb           = GetComponent <Rigidbody>();
        scoreManager = Score.Instance;
        view         = Camera.main;

        //GetComponentInChildren<Renderer>().material.color = Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f);
        //renderer.material.SetColor("_ToonShade",myColor);
        colorChanger.GetComponent <Renderer>().material.SetColor("_Color", Random.ColorHSV(0f, 1f, 1f, 1f, 0.5f, 1f));
        if (papa == 1)
        {
            scoreManager.score1 = 0;
        }
        if (papa == 2)
        {
            scoreManager.score2 = 0;
        }
        if (papa == 3)
        {
            scoreManager.score3 = 0;
        }
        if (papa == 4)
        {
            scoreManager.score4 = 0;
        }
    }
Ejemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        manager = GamepadManager.Instance;
        //  gamepad = manager.GetGamepad();
        gamepad = manager.GetGamepad(1);

        StartCoroutine(Gamepadator());
    }
Ejemplo n.º 5
0
 void Start()
 {
     //gameManager.AddPlayer (this);
     manager   = GamepadManager.Instance;
     gamepad   = manager.GetGamepad(playerIndex);
     rigidbody = GetComponent <Rigidbody>();
     song.SetActive(false);
     InitializeVariables();
     Camera.main.GetComponent <LightManager>().CraneOrOwlLight();
 }
Ejemplo n.º 6
0
    void Start()
    {
        gamepadMan = GamepadManager.Instance;
        gamepad    = gamepadMan.GetGamepad(player);

        for (int i = 0; i < cardOrder.Count; i++)
        {
            cardOrder[i].cardIndex = i;
        }
    }
Ejemplo n.º 7
0
    void Start()
    {
        // Getting the gamepad
        manager = GamepadManager.Instance;
        gamepad = manager.GetGamepad(playerIndex);

        // Getting the shader scripts from the camera
        bawShader   = Camera.main.GetComponent <ReplacementShaderEffect>();
        postProcess = Camera.main.GetComponent <PostProcessingBehaviour>();
        glowFlash   = Camera.main.GetComponent <QuickGlow>();

        // Finding the black image animator inside the scene
        Animator[] _allAnimator = FindObjectsOfType <Animator>();
        foreach (Animator anim in _allAnimator)
        {
            if (anim.gameObject.name == "BlackImage")
            {
                blackImageAnimator = anim;
            }
        }

        // Finding the white image animator inside the scene
        foreach (Animator anim in _allAnimator)
        {
            if (anim.gameObject.name == "WhiteImage")
            {
                whiteImageAnimator = anim;
            }
        }

        lightManager = Camera.main.GetComponent <LightManager>();

        // Setting the light rendering settings in the camera
        if (isCrane == true)
        {
            lightManager.hasCraneLights = true;
        }

        // Adding the appropriate lense to the list if toggled in the inspector
        if (isCrane == false)
        {
            lensesList.Add("bawLense");
        }

        if (isCrane == true)
        {
            // later on : the nightLense should be added to the lenseList if the crane bird takes it
            lensesList.Add("nightLense");
        }

        // Setting no lense as the initial lense
        lensCounter = 0;
        currentLens = lensesList[lensCounter];
    }
Ejemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     manager = GamepadManager.Instance;
     //  gamepad = manager.GetGamepad();
     gamepad = manager.GetGamepad(papa);
 }
Ejemplo n.º 9
0
 void Start()
 {
     rb      = GetComponent <Rigidbody> ();
     manager = GamepadManager.Instance;
     gamepad = manager.GetGamepad(player);
 }
Ejemplo n.º 10
0
 void Start()
 {
     manager = GamepadManager.Instance;
     gamepad = manager.GetGamepad(playerIndex);
     dust.Stop();
 }
Ejemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     manager = GamepadManager.Instance;
     gamepad = manager.GetGamepad(1);
 }
Ejemplo n.º 12
0
 public void LoadGamepad(int index)
 {
     gamepad = manager.GetGamepad(index + 1);
 }
Ejemplo n.º 13
0
 // Use this for initialization
 void Start()
 {
     manager = GamepadManager.Instance;
     gamepad = manager.GetGamepad(playerIndex);
     HideSlide();
 }