コード例 #1
0
        public void Start()
        {
            this.actions            = new List <MinigameAction>();
            this.currentActionIndex = 0;
            ButtonSequenceAction action = new ButtonSequenceAction();

            action.addButton(new ButtonPressedAction(ButtonMashAction.ButtonToMash.A));
            action.addButton(new ButtonPressedAction(ButtonMashAction.ButtonToMash.X));
            action.addButton(new ButtonPressedAction(ButtonMashAction.ButtonToMash.Y));
            this.actions.Add(action);
        }
コード例 #2
0
        /// <summary>
        /// Empty constructor.
        /// </summary>
        public MinigameActionManager()
        {
            this.actions            = new List <MinigameAction>();
            this.currentActionIndex = 0;
            ButtonSequenceAction action = new ButtonSequenceAction();

            action.addButton(new ButtonPressedAction(ButtonMashAction.ButtonToMash.A));
            action.addButton(new ButtonPressedAction(ButtonMashAction.ButtonToMash.X));
            action.addButton(new ButtonPressedAction(ButtonMashAction.ButtonToMash.Y));
            this.actions.Add(action);
            //this.actions.Add(new CollisionAction(GameManager.getObjectFromScene("DummyCookie")));
        }