Beispiel #1
0
    public void changeState(State.Input s, State.Height h)
    {
        if (s == State.Input.Neutral)
        {
            return;
        }

        bufferedInput.Add(Time.time, new State(h, s));
    }
Beispiel #2
0
    public void init(string name, bool playerOne)
    {
        bufferedInput = new Dictionary <float, State>();
        Debug.Log(name);
        anim     = GetComponentInChildren <Animator>();
        Charname = name;
        first    = playerOne;
        gameObject.GetComponentInChildren <SpriteRenderer>().flipX = !first;

        special     = gameObject.GetComponent <Effect>();//new Defense();
        comboLength = ComboLength.Zero;
        state       = State.Input.Neutral;
        height      = State.Height.Middle;
    }