void Awake() { DontDestroyOnLoad(gameObject); gameObject.AddComponent("MessageQueue"); gameObject.AddComponent("ConnectionManager"); NetworkRequestTable.init(); NetworkResponseTable.init(); SpeciesTable.initialize(); }
//ConnectionManager cManager = null; void Awake() { //cManager = new ConnectionManager(); gameObject.AddComponent <MessageQueue>(); gameObject.AddComponent <ConnectionManager>(); DontDestroyOnLoad(gameObject); NetworkRequestTable.init(); NetworkResponseTable.init(); SpeciesTable.initialize(); }