예제 #1
0
 private void Start()
 {
     OnTriggerActive.Subscribe(_ =>
     {
         timeline.SetActive(true);
         anim.runtimeAnimatorController = null;
     }).AddTo(this);
 }
예제 #2
0
    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);
    }