1. Hi

    I finally understood today how badly I misunderstood MonoBeahaviour class. Fortunately I've managed to salvage my code cutting only 300 lines or so.

    Here's the thing: I have a class that handles all the info about our in-game structures. I need it to do few quick but vital checks on every frame. For now the best I could come up with would be making the handling class : MonoBehaviour and attach it to some kind of always present server-sided GameObject.

    Now the questions: is it a proper way to go about it? If yes, what would the most appropriate GameObject be for such class to be attached to? If not, what is :)?

    Thanks in advance.
    [DOUBLEPOST=1431199779][/DOUBLEPOST]Or am I overthinking this and should just attach it to my core :RustPlugin class on init?
    [DOUBLEPOST=1431200124][/DOUBLEPOST]After a bit more of consideration I decided to go this way. I was worried about the execution order of different ()'s of MonoBehaviour but this shed some light on the issue http://forum.unity3d.com/threads/docs-on-calling-order-in-monobehaviour.2606/

    + this is much more detailed http://docs.unity3d.com/Manual/ExecutionOrder.html
     
    Last edited by a moderator: May 9, 2015