Ejemplo n.º 1
0
    private void OnCharacterReachDestination(Character EventCharacter)
    {
        CharacterReachableCells Cells = EventCharacter.GetReachableCells();
        Vector3 CharacterPosition = EventCharacter.GetPosition();

        if(Cells.IsCellInRunRange(CharacterPosition)) {
            EventCharacter.FinishedMove();
            EventCharacter.FinishedAction();
        }

        if(Cells.IsCellInWalkRange(CharacterPosition)) {
            EventCharacter.FinishedMove();
        }

        ShowCharacterMoveRange(EventCharacter);
    }