tag:blogger.com,1999:blog-4413126023739591657.post4570586826363528026..comments2014-06-25T09:50:26.837-07:00Comments on PocketCrusades: Use the KGFMapSystem for Fog of WarAnonymoushttp://www.blogger.com/profile/11286007862244276366noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4413126023739591657.post-37614611967931039512014-03-31T07:50:57.143-07:002014-03-31T07:50:57.143-07:00Will do, thanks!Will do, thanks!Anonymoushttps://www.blogger.com/profile/11286007862244276366noreply@blogger.comtag:blogger.com,1999:blog-4413126023739591657.post-30168662891809908562014-03-31T06:08:16.119-07:002014-03-31T06:08:16.119-07:00The other commenter is right though. At awake, st...The other commenter is right though. At awake, start a coroutine that yield return null while it can't find the gameobject. Once found, call DoCreate. That should limit how often update is called, and should have the same resultAnonymoushttps://www.blogger.com/profile/10706116803677256346noreply@blogger.comtag:blogger.com,1999:blog-4413126023739591657.post-33689660078579558692014-03-31T05:39:12.340-07:002014-03-31T05:39:12.340-07:00Thanks for the tip, however, since in this case th...Thanks for the tip, however, since in this case the fog_of_war plane of the KGFMapSystem is created some time during startup, and not necessarily right at start, I have to do it this way. Maybe I'll find a way to call it from somewhere else at a later point, to remove this update.<br /><br />Anyway, thanks for the input!Anonymoushttps://www.blogger.com/profile/11286007862244276366noreply@blogger.comtag:blogger.com,1999:blog-4413126023739591657.post-80184339946127951432014-03-31T04:38:33.654-07:002014-03-31T04:38:33.654-07:00Just a tip, since you are developing for mobile: A...Just a tip, since you are developing for mobile: Avoid unnecessary Update (& FixedUpdate, OnGUI etc) methods. Even empty ones will be called by the Unity engine.<br />Why not move the Update method code to an Awake or Start method instead? Brainswitch Machinahttp://www.brainswitch.senoreply@blogger.com