void Start() { time = 0.0f; mainObject = GameObject.Find("MainObject"); cManager = mainObject.GetComponent<ConnectionManager>(); gameObject.GetComponent<MessageQueue>().AddCallback(Constants.SMSG_AUTH, ResponseLogin); }