Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63c9235
commit de73de8
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed your lessons on Text101 several times and can not find anywhere a script that includes "q" to quit.
Can you please show me how you did this.
Thanks Alf
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just add this in managestate part
if (Input.GetKeyDown(KeyCode.Q))
{
state = startingState;
}
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a compilation error that occurs every time I try to play my text adventure game. It says something like AdventureGame is already included under namespace and stuff like Start and Uptade methods are already defined. Can I have suggestions as to what my problem might be?
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote code for the c# script AdventureGame up until the for loop lecture. It worked fine until I used the for loop and the problem stated in my previous comment started to occur.
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have the same error and can't find what's wrong, even tried to write it whole again and same result. I get error CS0101 and error CS0111. Anybody has a possible solution?
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so I was trying to rewrite everything and noticed something, there were two AdventureGame.cs scripts in the assets, one within the Scripts folder and the other in Assets. Deleted the one in Assets and everything works like magic.
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
de73de8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.