Example #1
0
    void Awake()
    {
        controller = this.GetComponent <CommsController>();
        commsNav   = FindObjectOfType <CommsNavigation>();
        inputField.onEndEdit.AddListener(AcceptStringInput);

        inputIsEmpty = false;
    }
Example #2
0
        static async Task <int> MainAsync(string[] args)
        {
            var quadcomss = new CommsController(QuadComms.CommControllers.SupportedChannels.Comm);

            await quadcomss.CommsControllerAsync();

            return(0);
        }
Example #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            CommsController obj = new CommsController();

            obj.EnableComms();

            //BehaviourManager mng = new BehaviourManager();
            //mng.LoadReactions();
        }
Example #4
0
    // Use this for initialization
    void Start()
    {
        ted     = FindObjectOfType <Teddy>();
        tedHead = FindObjectOfType <TeddyHead>();
        //dave = FindObjectOfType<Dave>();
        camMaster    = FindObjectOfType <CameraMaster>();
        cam          = GameObject.Find("RightEyeCam");
        bCam         = FindObjectOfType <BodyCam>();
        bCamCamera   = FindObjectOfType <BodyCam>().GetComponent <Camera>();
        leftEye      = FindObjectOfType <TeddyLeftEye>();
        scanner      = FindObjectOfType <InfoScan>();
        scanText     = scanner.GetComponent <Text>();
        rigid        = this.GetComponent <Rigidbody>();
        coll         = this.GetComponent <Collider>();
        commsControl = FindObjectOfType <CommsController>();
        toolSelect   = FindObjectOfType <ToolSelector>();

        rightEyeActive = false;                                                                                     // Right eye starts inactive
        rightEyeLock   = false;                                                                                     // Right eye starts locked (really??)
        tedTrack       = false;

        //rigid.velocity = Vector3.zero;
        //rigid.angularVelocity = Vector3.zero;

        sixDOF             = false;                                                                                 // Non-6dof on start
        rightLight.enabled = false;                                                                                 // Eye light off on start

        lockIndicator.enabled   = true;
        sixDOFIndicator.enabled = true;

        scanStart = 0;

        storedSpeed = rightEyeSpeed;

        scanObject         = null;
        previousTargetedID = null;
        hostID             = ted.transform.GetComponent <IDCharacter>();
        targetedGhost      = null;
        targetedSpeech     = null;
        targetedAI         = null;
        targetedAudio      = null;

        targetInfoCleared = false;

        scanFrom = null;
    }
Example #5
0
    // Start is called before the first frame update
    void Start()
    {
        commsPanel   = commsPanel.GetComponent <PanelsBottom>();
        commsControl = FindObjectOfType <CommsController>();
        tedsProfile  = FindObjectOfType <Teddy>().transform.GetComponent <IDCharacter>().stardaterProfile;

        basicInfoTxt.supportRichText = true;
        profileTxt.supportRichText   = true;

        EnableScreen(false);

        curProfileIndex = 0;

        isActivated = false;

        curProfileInspectionImage    = profilePage;
        curChatButton                = acceptChatButton;
        curChatPendingTextFrameIndex = 0;

        SessionState     = SessionMode.Inactive;
        PrevSessionState = SessionMode.Inactive;
        InspectionState  = InspectionMode.LookingAtMainPage;
    }
Example #6
0
 public override bool IsTheInputValid(CommsController controller, string[] separatedWords)
 {
     return(controller.commsNavigation.IsNoVerbLineInputValid(separatedWords[0]));
 }
Example #7
0
 public override void RespondToInput(CommsController controller, string[] separatedWords)
 {
     controller.commsNavigation.NextNoVerbLine(separatedWords[0]);
 }
Example #8
0
 static void Main(string[] args)
 {
     var cc  = new CommsController();               // Responsible for opening the serial port.
     var fdr = new FalconDataRetriever();           // Responsible for getting the data from Falcon - uses lightning's dll.
     var cmc = new CommsMessageController(cc, fdr); // Sends the data to the arudino
 }
 public CommsControllerTest()
 {
     _controller = new CommsController(_mockRepository.Object, _mockLogger.Object);
 }
Example #10
0
 void Awake()
 {
     controller = this.GetComponent <CommsController>();
     actCoord   = FindObjectOfType <ActionSceneCoordinator>();
     //currentLine = null;
 }
 public abstract bool IsTheInputValid(CommsController controller, string[] separatedWords);
 public abstract void RespondToInput(CommsController controller, string[] separatedWords);