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---------"); }
public void setNew() { handOnObject = false; goal = 0; showing = false; stage = -1; if (logicGame != null) { idPlayer = Int32.Parse(gameObject.name.ToCharArray()[gameObject.name.Length - 1] + ""); homePosition = logicGame.homePositions[idPlayer]; homePosition2 = logicGame.homePositions2[idPlayer]; positions = logicGame.positions; objects = logicGame.objects; onTurn = (idPlayer == logicGame.currentPlayer); notificationsMannager = GameObject.Find("Instructions Player " + idPlayer).GetComponent <NotificationsMannager>(); notificationsMannager.lightStepNotification(7); } trackerMannager.setTrackers(); //fillPlayerInformation(); fillPlayerInformationFull(); }