void Update() { if (ObserverMode && Timer) { StartCoroutine(SendingLimiter(RobotCommands.GetSceneInf(), 1f)); } }
// Update is called once per frame IEnumerator Click() { this.gameObject.GetComponent <Button>().interactable = false; SceneManager.Net.Sender(RobotCommands.Sensors()); yield return(new WaitForSeconds(5)); SceneManager.Net.Sender(RobotCommands.GetSceneInf()); this.gameObject.GetComponent <Button>().interactable = true; }
void Getscene() { Sender(RobotCommands.GetSceneInf()); }