playMaker

Author Topic: STOP START durring Debug Log [SOLVED]  (Read 1494 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
STOP START durring Debug Log [SOLVED]
« on: January 29, 2015, 02:13:10 PM »
i discovered this recently and i assume it cause a bug, but i have no idea why this happen, and how to avoid it to hapen.

i also not see any reason of it
« Last Edit: January 30, 2015, 03:42:48 AM by blackant »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: STOP START durring Debug Log
« Reply #1 on: January 29, 2015, 03:33:13 PM »
After more checking, i fund a clue... but it's really strange.

for 2 players, i have created a globalBool variable:
True --> Player 1 Turn
False --> Player 2 Turn

After the bool is set back to True, many of the FSM are Reset an dget this STOP/START step

without any logic i think

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: STOP START durring Debug Log
« Reply #2 on: January 30, 2015, 03:07:43 AM »
i think i have fund why this happen.

i'm using Activate the gameobject to swap players turn and hide deck 1 or 2 and this cause the FSM to be stopped and restarted each time...
« Last Edit: January 30, 2015, 03:10:41 AM by blackant »