Exemplo n.º 1
0
    private SymbiotInputs createDouble(int golem, int wizard)
    {
        SymbiotInputs s = new SymbiotInputs();
        s.golemForwardAxis = ControllerUtil.GetName(golemForwardAxis) + " " + golem;
        s.golemStrafeAxis = ControllerUtil.GetName(golemStrafeAxis) + " " + golem;
        s.golemTurnAxis = ControllerUtil.GetName(golemTurnAxis) + " " + golem;

        s.golemDashButton = playerPrefix + " " + golem + " " + ControllerUtil.GetName(golemDashButton);
        s.golemWallButton = playerPrefix + " " + golem + " " + ControllerUtil.GetName(golemWallButton);

        s.wizardTurnAxis = ControllerUtil.GetName(wizardTurnAxis)+ " " + wizard;
        s.wizardFireButton = playerPrefix + " " + wizard + " " + ControllerUtil.GetName(wizardFireButton);
        s.wizardShieldButton = playerPrefix + " " + wizard + " " + ControllerUtil.GetName(wizardShieldButton);

        return s;
    }
Exemplo n.º 2
0
    private SymbiotInputs createSingle(int golem, int wizard)
    {
        SymbiotInputs s = new SymbiotInputs();
        s.golemForwardAxis = ControllerUtil.GetName(golemForwardAxis) + " " + golem;
        //not used
        s.golemStrafeAxis = null;
        s.golemTurnAxis = ControllerUtil.GetName(golemStrafeAxis) + " " + golem;

        //Use alternative button
        s.golemDashButton = playerPrefix + " " + golem + " " + ControllerUtil.GetName(golemAltDashButton);
        s.golemWallButton = playerPrefix + " " + golem + " " + ControllerUtil.GetName(golemAltWallButton);

        // Use golem turn axis
        s.wizardTurnAxis = ControllerUtil.GetName(golemTurnAxis) + " " + wizard;
        s.wizardFireButton = playerPrefix + " " + wizard + " " + ControllerUtil.GetName(wizardFireButton);
        s.wizardShieldButton = playerPrefix + " " + wizard + " " + ControllerUtil.GetName(wizardShieldButton);

        return s;
    }
Exemplo n.º 3
0
 private void SetControls()
 {
     if (controllerScheme == SchemeType.TWO_CONTROLLERS)
     {
         symbiantOne = createSingle(controllerIds[0], controllerIds[0]);
         symbiantTwo = createSingle(controllerIds[1], controllerIds[1]);
     } else if (controllerScheme == SchemeType.FOUR_CONTROLLERS)
     {
         symbiantOne = createDouble(controllerIds[0], controllerIds[1]);
         symbiantTwo = createDouble(controllerIds[2], controllerIds[3]);
     }
 }
Exemplo n.º 4
0
 public void SetInputs(SymbiotInputs inputs)
 {
     wizardFireButton = inputs.wizardFireButton;
 }
Exemplo n.º 5
0
    private void SetInputs(SymbiotInputs inputs)
    {
        golemForwardAxis = inputs.golemForwardAxis;
        golemStrafeAxis = inputs.golemStrafeAxis;
        golemTurnAxis = inputs.golemTurnAxis;

        golemDashButton = inputs.golemDashButton;
        wallCreator.SetInputs(inputs);

        wizardTurnAxis = inputs.wizardTurnAxis;
        wizardShieldButton = inputs.wizardShieldButton;
        gun.SetInputs(inputs);
    }
Exemplo n.º 6
0
 public void SetInputs(SymbiotInputs inputs)
 {
     golemWallButton = inputs.golemWallButton;
 }