Example #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.gameObject == Totem_01 || Totem_02.gameObject == Totem_02)
     {
         Particula_01.SetActive(false);
         Particula_02.SetActive(false);
         Checker_01.SetActive(false);
     }
 }
Example #2
0
    private void OnTriggerStay(Collider other)
    {
        if (other.gameObject == Totem_01)
        {
            Checker_01.SetActive(true);
            Particula_01.SetActive(true);
        }

        if (other.gameObject == Totem_02)
        {
            Checker_01.SetActive(true);
            Particula_02.SetActive(true);
        }
    }