Exemplo n.º 1
0
    override public bool update()
    {
        time += Time.deltaTime;

        if (time > 2.0f)
        {
            // rare bug: movement does not finish correctly. The cause could not be identified over several weeks.
            Debug.Log("Movement bug occurred!");
            // attempted workaround:
            time = 0.0f;
            activeController.ClearMoves();           // remove the previous move command
            activeController.TeleportToTile(target); // teleport to target position
        }

        return(activeController.animationDone());
    }
Exemplo n.º 2
0
 override public bool update()
 {
     return(activeController.animationDone());
 }