// Use this for initialization protected virtual void Start() { MultipleManager = GameObject.Find("SmallMultiplesManager"); mrs = GameObject.Find("SmallMultiplesManager").GetComponent <SmallMultiplesManagerScript>(); smallMultipleNumbers = mrs.smallMultiplesNumber; if (this.GetComponent <SteamVR_TrackedObject>() == null) { gameObject.AddComponent <SteamVR_TrackedObject>(); } if (controllerIndex != 0) { this.GetComponent <SteamVR_TrackedObject>().index = (SteamVR_TrackedObject.EIndex)controllerIndex; if (this.GetComponent <SteamVR_RenderModel>() != null) { this.GetComponent <SteamVR_RenderModel>().index = (SteamVR_TrackedObject.EIndex)controllerIndex; } } else { controllerIndex = (uint)this.GetComponent <SteamVR_TrackedObject>().index; } }
// Use this for initialization void Start() { SmallMultiplesManagerScript smms = GameObject.Find("SmallMultiplesManager").GetComponent <SmallMultiplesManagerScript>(); ToolTipPrefab = smms.tooltipPrefab; silhouetteShader = smms.silhouetteShader; bs = this.transform.parent.parent.parent.GetComponent <BuildingScript>(); si = transform.Find("sensorInfo").gameObject.GetComponent <SensorInfo>(); ReadDataFromManager(); if (hasInfo) { //si.getMonthlySensorReadings (); if (smms.dateType == DateType.Monthly) { si.getMonthlySensorReadings(); } if (smms.dateType == DateType.Fornightly) { si.getSensorReadings(smms.smallMultiplesNumber, 14); } if (smms.dateType == DateType.Weekly) { si.getSensorReadings(smms.smallMultiplesNumber, 7); } ChangeColor(); SendTempTag(); } }
void SendTempTag() { if (si.tempTag != null) { SmallMultiplesManagerScript smms = GameObject.Find("SmallMultiplesManager").GetComponent <SmallMultiplesManagerScript>(); smms.AssignTempTag(si.tempTag); } }
private void Awake() { tangentPerpendiculars = new List <GameObject>(); currentLvlSmallMultiples = new List <GameObject>(); pointList = new List <Vector3>(); boardPieces = new List <GameObject>(); pointListCopy = new Vector3[vertexCount + 1]; smms = GameObject.Find("SmallMultiplesManager").GetComponent <SmallMultiplesManagerScript>(); //focus = GameObject.CreatePrimitive(PrimitiveType.Sphere); //focus.transform.localScale = new Vector3(0.01f, 0.01f, 0.01f); //focus.name = "focus point"; //focus.transform.parent = this.transform; //focus.SetActive(false); }
private void Start() { //MultipleManager = GameObject.Find("SmallMultiplesManager"); mrs = GameObject.Find("SmallMultiplesManager").GetComponent <SmallMultiplesManagerScript>(); }