public override void OnEnter()
            {
                Services.Defenders.PrepareDefenderMovePhase();
                Services.Events.Register <InputEvent>(HandleMoveInputs);
                Services.Events.Register <MoveEvent>(HandleMoves);
                Services.Undo.PrepareToUndoMoves();
                Context.imSure = false;

                Context.ChangeUIText(MOVE_START_MSG, HOW_MOVE_MSG);

                ranger   = GameObject.Find(RANGER).GetComponent <RangerBehavior>();
                guardian = GameObject.Find(GUARDIAN).GetComponent <GuardianBehavior>();
                brawler  = GameObject.Find(BRAWLER).GetComponent <BrawlerBehavior>();

                Services.Events.Register <TutorialClick>(OnButtonClick);
            }
예제 #2
0
 public AttackAction(BrawlerBehavior owner)
 {
     _owner = owner;
 }
    /////////////////////////////////////////////
    /// Functions
    /////////////////////////////////////////////


    //constructor
    public TankardDropTask(BrawlerBehavior brawler, int drops)
    {
        this.brawler = brawler;
        this.drops   = drops;
    }