void Start() { _uiHolograpgicCamera = ManagerObjects.Instance().GetObject(EnumObjects.UIHolographicCamera); _uiHolographicMove = ManagerObjects.Instance().GetObject(EnumObjects.UIHolographicMove); _controlMove = ManagerObjects.Instance().GetObject(EnumObjects.controlMove); _controlCamera = ManagerObjects.Instance().GetObject(EnumObjects.controlCamera); _uiHolographicSpeesTxt = ManagerObjects.Instance().GetObject(EnumObjects.UITxtSpeed).GetComponent <TextMesh>(); }
void Start() { if (!_socketReady) { return; } SendBytes(Network_Encoder_Decoder.Instance().EncodeSpeed(CarInformation.Instance().GetSpeed(), EnumEngine.EngineLeft)); SendBytes(Network_Encoder_Decoder.Instance().EncodeSpeed(CarInformation.Instance().GetSpeed(), EnumEngine.EngineRight)); ManagerObjects.Instance().GetObject(EnumObjects.UITxtSpeed).GetComponent <TextMesh>().text = CarInformation.Instance().GetSpeed().ToString(); SendBytes(Network_Encoder_Decoder.Instance().EncodeServoLock()); }
void Start() { _uiCamTexPlaneBig = ManagerObjects.Instance().GetObject(EnumObjects.UICamPlaneBig); _uiCamTexPlaneSmall = ManagerObjects.Instance().GetObject(EnumObjects.UICamPlaneSmall); _currentOperatingModePrevFrame = CarInformation.Instance().GetOperatingMode(); Connect(); if (CarInformation.Instance().GetOperatingMode() == OperatingMode.CameraMode) { frame = _uiCamTexPlaneBig.GetComponent <MeshRenderer>(); } else { frame = _uiCamTexPlaneSmall.GetComponent <MeshRenderer>(); } }
void Start() { _movementBall = ManagerObjects.Instance().GetObject(EnumObjects.MovementShere); _uiCenterPointMoveBall = ManagerObjects.Instance().GetObject(EnumObjects.UICenterPointMoveBall); _movementBallScriptNavigation = _movementBall.GetComponent <ShpereNavigation>(); }