// Use this for initialization void Start() { // Start TcpServer background thread tcpListenerThread = new Thread(new ThreadStart(ListenForIncommingRequests)); tcpListenerThread.IsBackground = true; tcpListenerThread.Start(); roboController = GetComponent <RoboController>(); turnedOn = true; readyToKill = false; started = false; errorMessage = roboController.errorMessage; }
void Awake() { //_animator = GetComponent<Animator>(); _as = EngineSound.GetComponent <AudioSource>(); _controller = GetComponent <RoboController>(); RB_PC = GetComponent <Rigidbody2D>(); // listen to some events for illustration purposes _controller.onControllerCollidedEvent += onControllerCollider; _controller.onTriggerEnterEvent += onTriggerEnterEvent; _controller.onTriggerExitEvent += onTriggerExitEvent; //_scene = UnityEngine.SceneManagement.SceneManager.GetActiveScene(); currentLevel = 0; //_scene.buildIndex; jumpSound = GetComponent <AudioSource>(); }
void Start() { robot = GameObject.Find("Robot").GetComponent <RoboController>(); controlLock = false; camScript = GameObject.Find("Main Camera").GetComponent <CameraMovement>(); }
void Awake() { transform = gameObject.transform; lastZCam = transform.position.z; _playerController = target.GetComponent <RoboController>(); }
// Start is called before the first frame update void Start() { roboController = GetComponent <RoboController>(); }
public RobotDataHolder(RoboController cont) { controller = cont; collectValsFromBot(); dataText = System.IO.File.ReadAllText(@"C:\Users\Arjun Pal\Downloads\buffer.txt"); }