Пример #1
0
    void Start()
    {
        SocketLinkerObj = GameObject.Find("SocketManager").GetComponent <SocketLinkerObj>();

        CarStatusUIObj = gameObject.GetComponent <CarStatusUIObj>();
        ReadyToCommand = true;
    }
Пример #2
0
    void Start()
    {
        SocketLinkerObj = GameObject.Find("SocketManager").GetComponent <SocketLinkerObj>();
        CarStatusUIObj  = gameObject.GetComponent <CarStatusUIObj>();

        BackToCamButton.onClick.AddListener(BackToCam);
        AddItemButton.onClick.AddListener(OpenAddItemView);

        SetCurrentPositionButton.onClick.AddListener(SetCurrentPosition);
        AddPositionButton.onClick.AddListener(AddPosition);
        CloseButton.onClick.AddListener(Close);
    }
    private void Awake()
    {
        socketObj = GameObject.Find("NetworkManager(Clone)")?.GetComponent <SocketObj>();
        if (socketObj == null)
        {
            return;
        }

        clientSender            = socketObj.socketClient;
        socketObj.OnDataInvoke += SocketObj_OnDataInvoke;

        carStatusUIObj = CoreLinker.GetComponent <CarStatusUIObj>();
    }
    void Start()
    {
        SocketLinkerObj = GameObject.Find("SocketManager").GetComponent <SocketLinkerObj>();
        CarStatusUIObj  = gameObject.GetComponent <CarStatusUIObj>();

        BackToListButton.onClick.AddListener(BackToList);
        EditAutoDriveButton.onClick.AddListener(EditAutoDrive);

        SwitchDriveModeButton.onClick.AddListener(SwitchDriveMode);
        AddCurrentPositionButton.onClick.AddListener(AddCurrentPosition);

        SwitchCamButton.onClick.AddListener(SwitchCam);
        HideUIButton.onClick.AddListener(HideUI);

        ResUpButton.onClick.AddListener(ResolutionUp);
        ResDownButton.onClick.AddListener(ResolutionDown);
    }
Пример #5
0
 public CarDevice(CarStatusUIObj carStatusUIObj)
 {
     CarStatusUIObj = carStatusUIObj;
     InitStatusNum();
 }