Exemple #1
0
    //TODO: Make sure this is working
    private void Hostile_Reaction_LengthenPathToExit()
    {
        MazeDirection?longcutDir      = maze.LengthenPathToExitIfPossible(playerCurrentCoords);
        bool          longcutPossible = longcutDir != null;

        oneWayTimedComm.SetTimeToWait(5.0f);
        SendMessageToPlayer(GameLinesTextGetter.LongcutText(longcutPossible), oneWayTimedComm);

        if (longcutPossible)
        {
            maze.AddSignpostToCell(playerCurrentCoords, longcutDir.GetValueOrDefault(), player.transform.localPosition);
        }
    }