Ejemplo n.º 1
0
 private void Start()
 {
     OnTriggerActive.Subscribe(_ =>
     {
         timeline.SetActive(true);
         anim.runtimeAnimatorController = null;
     }).AddTo(this);
 }
Ejemplo n.º 2
0
        public void Init(Vector3 initTriggerPos, TargetPositionGetter positionGetter, OnTriggerActive callBack, DirMode dirMode)
        {
            m_TriggerPosition = initTriggerPos;
            m_DirMode         = dirMode;
            m_PositionGetter  = positionGetter;
            m_OnTriggerActive = callBack;
            m_DirMode         = dirMode;

            INDEX = (int)m_DirMode;
        }
Ejemplo n.º 3
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);
    }