void Start() { if (!GetComponent <PhotonView>().isMine) { this.enabled = false; } orientationsPlayer = new Queue <Quaternion>(); scenariosPlayer = new Queue <int[]>(); orientationsPlayerMatrix = new Queue <Quaternion> [2, 2]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { orientationsPlayerMatrix[i, j] = new Queue <Quaternion>(); } } masterController = gameObject.GetComponent <MasterController>(); targetedController = gameObject.GetComponent <TargetedController>(); persistanceManager = gameObject.GetComponent <PersistanceManager>(); trackerMannager = gameObject.GetComponent <TrackerMannager>(); surveyMannager = gameObject.GetComponent <SurveyMannager>(); hand = handObject.gameObject.GetComponent <IGenericHand>(); propMannager = gameObject.GetComponent <PropMannager>(); personalNotifications = gameObject.GetComponent <PersonalNotifications>(); }
void Start() { masterController = gameObject.GetComponent <MasterController>(); targetedController = gameObject.GetComponent <TargetedController>(); persistanceManager = gameObject.GetComponent <PersistanceManager>(); trackerMannager = gameObject.GetComponent <TrackerMannager>(); notificationsMannager = gameObject.GetComponent <NotificationsMannager>(); surveyMannager = gameObject.GetComponent <SurveyMannager>(); setNew(); }
// Start is called before the first frame update void Start() { trackerMannager = gameObject.GetComponent <TrackerMannager>(); notificationsMannager = gameObject.GetComponent <NotificationsMannager>(); surveyMannager = gameObject.GetComponent <SurveyMannager>(); logic = gameObject.GetComponent <Logic>(); propMannager = gameObject.GetComponent <PropMannager>(); persistanceManager = gameObject.GetComponent <PersistanceManager>(); surveyActivated = false; // TODO the steps should be shared. Notification Mannager to be changes drasticly //notificationsMannager.lightStepNotification(1); }
// Start is called before the first frame update void Start() { persistanceManager = gameObject.GetComponent <PersistanceManager>(); trackerMannager = gameObject.GetComponent <TrackerMannager>(); notificationsMannager = gameObject.GetComponent <NotificationsMannager>(); surveyMannager = gameObject.GetComponent <SurveyMannager>(); logic = gameObject.GetComponent <Logic>(); surveyActivated = false; if (!isDemo) { setNew(); } else { currentStage = EXP_STAGE.PROP_MATCHING_PLUS_RETARGETING; notificationsMannager.lightStepNotification(1); started = true; if (notificacionTextObject != null) { TextMesh text = notificacionTextObject.GetComponent <TextMesh>(); text.text = "Welcome!!"; } if (persistanceManager != null) { persistanceManager.storeLocal = false; persistanceManager.storeInForms = false; } trackerMannager.setTrackers(); } //Debug.Log("-----------Waiting---------"); }