Пример #1
0
	// Use this for initialization
	void Start () {
		combo = new Combo();

		if (comboIndicator == null)
		{
			var gameObject = GameObject.FindWithTag("Player Combo Indicator");
			comboIndicator = gameObject.GetComponent<ComboIndicator>();
		}
		if (comboIndicator != null)
		{
			comboIndicator.SetCombo(combo);
		}
		else
		{
			Debug.LogWarning("Cannot find 'Player Combo Indicator'. Did you add a UI?");
		}

		bulletSpawner = GetComponent<RespawnBullet>();
		comboDb = FindObjectOfType<ComboDatabase>();

		invalidComboEffect = FindObjectOfType<InvalidComboEffect>();

		string[] joystickNames = Input.GetJoystickNames();

		foreach (string str in joystickNames)
		{
			print("Joystick:" + str);
		}
	}
Пример #2
0
        void IModule.Install(ModuleManager manager)
        {
            _manager       = manager;
            _client        = manager.Client;
            _comboDatabase = new ComboDatabase();

            manager.CreateCommands(string.Empty, group => {
                group.CreateGroup("dragonpunch", g => {
                    g.CreateCommand("dpcombo")
                    .Description("Searches for a combo suiting the given parameters.")
                    .Parameter("game")
                    .Parameter("character")

                    /* tag-based query to sort combos. Tags would for example be 'corner' to only display corner combos, or 'dmg>=1000' to only display
                     * combos with a total damage above or equal to 1000. Multiple tags can be combined with commas: 'corner,dmg>=1000'
                     *
                     * dmg[=/>=/<=/</>][number]: specifies a damage condition
                     * dmg=highest: display the combos sorted with highest damage first.
                     *    *can be combined with dmg[=/>=/<=/</>][number]
                     *    *cannot be combined with dmg=lowest
                     * dmg=lowest: display the combos sorted with lowest damage first.
                     *    *can be combined with dmg[=/>=/<=/</>][number]
                     *    *cannot be combined with dmg=highest
                     * corner: displays corner-only combos
                     *    *cannot be combined with the 'midscreen' tag
                     * midscreen: displays combos that are not corner-only. This does not mean they do not work in the corner as well.
                     *    *cannot be combined with the 'corner' tag
                     * meter[=/>=/<=/</>][percentage]: specifies a meter condition for how much meter the combo requires.
                     *    *For Skullgirls, 20% meter would be 1 bar. For Blazblue or GuiltyGear, 50% meter would be equivalent to 50% Heat/Tension
                     * bnb: only display combos with the 'bnb' tag. Usually a set of combos for each character that have mediocre damage but
                     *    showcase some essential links
                     * all: lists all combos for a character. Might be a little spammy
                     *    *can only be combined with 'dmg=highest' or 'dmg=lowest'
                     */
                    .Parameter("query", ParameterType.Optional)

                    // a number representing the maximum amount of combos to display, with a minimum of 1.
                    .Parameter("maxdisplay", ParameterType.Optional)
                    .Do(SearchCombo);
                });
            });
        }