Exemple #1
0
 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>();
 }
Exemple #2
0
 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;
 }
Exemple #3
0
        // 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;
        }
Exemple #4
0
        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;
        }
Exemple #5
0
 // Use this for initialization
 void Start()
 {
     this.appManger = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>();
     this.text = this.gameObject.GetComponentInChildren<Text>();
 }
Exemple #6
0
 void Awake()
 {
     this.appManger = GameObject.FindGameObjectWithTag("Player").GetComponent<ApplicationManager>();
     this.lastMessages = new List<MessageTemplate>();
 }