コード例 #1
0
    public override void Start()
    {
        base.Start();

        moveState = new Pink_MoveState(this, stateMachine, "move", moveStateData, this);

        idleState = new Pink_IdleState(this, stateMachine, "idle", idleStateData, this);

        playerDetectedState = new Pink_PlayerDetectedState(this, stateMachine, "playerDetected", playerDetectedStateData, this);

        stateMachine.Initialize(moveState);
    }
コード例 #2
0
ファイル: Pink.cs プロジェクト: nemchuk/Android2020
    public override void Start()
    {
        base.Start();

        moveState = new Pink_MoveState(this, stateMachine, "move", moveStateData, this);

        idleState = new Pink_IdleState(this, stateMachine, "idle", idleStateData, this);

        playerDetectedState = new Pink_PlayerDetectedState(this, stateMachine, "playerDetected", playerDetectedStateData, this);

        chargeState = new Pink_ChargeState(this, stateMachine, "charge", chargeStateData, this);

        lookForPlayerState = new Pink_LookForPlayerState(this, stateMachine, "lookForPlayer", lookForPlayerStateData, this);

        meleeAttackState = new Pink_MeleeAttackState(this, stateMachine, "meleeAttack", meleeAttackPosition, meleeAttackStateData, this);

        stunState = new Pink_StunState(this, stateMachine, "stun", stunStateData, this);

        deadState = new Pink_DeadState(this, stateMachine, "dead", deadStateData, this);



        stateMachine.Initialize(moveState);
    }