private void Start() { OnTriggerActive.Subscribe(_ => { timeline.SetActive(true); anim.runtimeAnimatorController = null; }).AddTo(this); }
void Start() { objs.Add(this); OnTriggerActive.Subscribe(_ => { objs.ForEach(w => w.OnTriggerEnd()); Collider[] colls = GetComponentsInChildren <Collider>(); colls.ToList().ForEach(c => c.enabled = false); ChangeMaterial(triggerMat); }).AddTo(this); }