void Start() { Handler = gameObject.GetComponent <VRC_EventHandler>(); Storage = gameObject.GetComponent <VRC_DataStorage>(); Values = new List <VRC_CT_ScoreboardValue>(gameObject.GetComponents <VRC_CT_ScoreboardValue>()); ScoreboardTexts = new List <VRC_CT_Scoreboard>(); foreach (GameObject g in Scoreboards) { ScoreboardTexts.AddRange(g.GetComponents <VRC_CT_Scoreboard>()); } }
private void Start() { renderer = this.GetComponent <Renderer>(); data = this.GetComponent <VRC_DataStorage>(); for (int i = 0; i < data.data.Length; i++) { if (data.data[i].name == "display") { dataIndex = i; } } }
// Token: 0x060059EF RID: 23023 RVA: 0x001F3C1C File Offset: 0x001F201C public void Initialize(VRC_DataStorage data) { this.dataStorage = data; this._animator = base.GetComponentInChildren <Animator>(); AIRig componentInChildren = base.GetComponentInChildren <AIRig>(); if (componentInChildren != null) { this._rainMemory = componentInChildren.AI.WorkingMemory; } if (VRC_DataStorageInternal.f__mg0 == null) { VRC_DataStorageInternal.f__mg0 = new Func <VRC_DataStorage, string, int>(VRC_DataStorageInternal.GetElementIndex); } VRC_DataStorage._GetElementIndex = VRC_DataStorageInternal.f__mg0; }
// Token: 0x060059F8 RID: 23032 RVA: 0x001F4148 File Offset: 0x001F2548 public static int GetElementIndex(VRC_DataStorage ds, string name) { VRC_DataStorageInternal component = ds.gameObject.GetComponent <VRC_DataStorageInternal>(); return(component.GetElementIndex(name)); }