void Awake() { this.appManager = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>(); this.messageControllObj = GameObject.FindGameObjectWithTag("MWindow"); this.controlls = messageControllObj.GetComponent<MessageController>(); this.input = this.gameObject.GetComponent<InputField>(); }
void Awake() { this.appManager = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>(); this.mSender = GameObject.FindGameObjectWithTag("MSender").GetComponent<SendMessage>(); parrent = transform.parent.gameObject; this.messageObj = parrent.GetComponent<MessageManager>(); this.id = messageObj.Id; }
// Use this for initialization void Awake() { this.appManager = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>(); this.accessToken = this.appManager.Token; this.GenerateUsers(this.GetUsersFromSercer()); this.currentTime = 0; this.intervalTime = 0.5f; }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } this.messages = new List<MessageTemplate>(); DontDestroyOnLoad(gameObject); this.currentTime = 0; this.intervalTime = 0.5f; }
// Use this for initialization void Start() { this.appManger = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>(); this.text = this.gameObject.GetComponentInChildren<Text>(); }
void Awake() { this.appManger = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>(); this.lastMessages = new List<MessageTemplate>(); }