private void refreshDataSources() { if (this.dataSource != null) { MecanimEventManager.SetEventDataSource(this.dataSource); } else { MecanimEventManager.SetEventDataSource(this.dataSources); } }
private void Awake() { if (this.dataSource == null && (this.dataSources == null || this.dataSources.Length == 0)) { Debug.Log("Please setup data source of event system."); return; } if (this.dataSource != null) { MecanimEventManager.SetEventDataSource(this.dataSource); } else { MecanimEventManager.SetEventDataSource(this.dataSources); } }
// Token: 0x06001592 RID: 5522 RVA: 0x00078BB0 File Offset: 0x00076DB0 private void Start() { if (this.animator == null) { Debug.LogWarning("Do not find animator component."); base.enabled = false; return; } if (this.animatorController == null) { Debug.LogWarning("Please assgin animator in editor. Add emitter at runtime is not currently supported."); base.enabled = false; return; } MecanimEventManager.SetEventDataSource(this); }