Ejemplo n.º 1
0
        public IEnumerator when_move_to_up_should_touch_collider_up()
        {
            yield return(new WaitForSeconds(2));

            controller.jump();
            yield return(new WaitForSeconds(1));

            jump.assert_collision_enter(controller.gameObject);
            jump_2.assert_collision_enter(controller.gameObject);
            jump_3.assert_not_collision_enter();
        }
Ejemplo n.º 2
0
        public virtual void action(string name, string e, bool buffer)
        {
            switch (name)
            {
            case "fire1":
                switch (e)
                {
                case chibi.joystick.events.down:
                    break;

                case chibi.joystick.events.up:
                    break;
                }
                break;

            case "jump":
                switch (e)
                {
                case chibi.joystick.events.down:
                    player.jump();
                    break;

                case chibi.joystick.events.up:
                    player.stop_jump();
                    break;
                }
                break;
            }
        }