Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple use of a void OnStart, need help D:
Ermu Offline
Member

Posts: 86
Threads: 13
Joined: Jan 2012
Reputation: 2
#4
RE: Multiple use of a void OnStart, need help D:

(06-09-2012, 10:43 PM)ApeCake Wrote:
(06-09-2012, 10:11 PM)palistov Wrote: Under your line //new thing here is a code block that is out of place. You can't stick blocks of code arbitrarily around, they need an identifier, which essentially says what it is and/or under what circumstances it is run.
Yeah, but that part needs to be with void OnStart(). I guess void OnStart() is an indentifier? But if I put void OnStart() there it says I can't put void OnStart() twice...
You can do this:
put this inside your void OnStart
NewThing();

and then place this anywhere, outside OnStart, OnLeave, and OnEnter

NewThing()
{

}
06-09-2012, 10:53 PM
Find


Messages In This Thread
RE: Multiple use of a void OnStart, need help D: - by Ermu - 06-09-2012, 10:53 PM



Users browsing this thread: 1 Guest(s)