Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

[ad_1]

So im attempting to make a randomized era engine for a high down dungeon crawler, within the Binding of Isaac Model, nonetheless, the code is throwing out a large number of errors when i strive it evaluate a price to a price within the record. the errors are on line 44,155,271,384, that are all if statements which are all formatted as such :if(gameMaster.PositionsOfRooms.Comprises(generatorPoint.rework.place))

Code Snippet:

public class DoorGenerator : MonoBehaviour

public bool isdoor;
public bool facingUp;
public bool facingDown;
public bool facingRight;
public bool facingLeft;
public bool generated;
public bool startingRoom = false;
public int runningRoomCount;
public GameObject generatorPoint;
public GameMasterScript gameMaster;
public Remodel teleportfromCords;
public Remodel teleporttoCords;
public GameObject digital camera;
// Begin known as earlier than the primary body replace
void Begin()
{
    gameMaster = GameObject.Discover("GameMaster").GetComponent<GameMasterScript>();
    teleportfromCords = rework.Discover("TeleportPoint");
    digital camera = GameObject.Discover("Predominant Digicam");
}

// Replace known as as soon as per body
void Replace()
{
    if(generated == false && gameMaster.targetRooms > gameMaster.roomsGenerated) 
    {
        GenerateRoom();


    }
}

public void GenerateRoom()
{if(generated ==false){
generated = true;
{
    if(facingUp == true)
        {
        generatorPoint = rework.father or mother.Discover("CreateRoomUp").gameObject;
        if(gameMaster.PositionsOfRooms.Comprises(new Vector3(generatorPoint.rework.place.x, generatorPoint.rework.place.y, generatorPoint.rework.place.z)))
        {
            return;
        }
        else
        {

[ad_2]

Leave a Reply

Your email address will not be published. Required fields are marked *