Example #1
0
    private void Start()
    {
        Anim = GetComponent <Animator>();

        if (Obj0 == true)
        {
            Obj0.SetActive(false);
        }
        if (Obj1 == true)
        {
            Obj1.SetActive(false);
        }
    }
Example #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.CompareTag("Player"))
     {
         Activated = true;
         if (Act.isPlaying == false)
         {
             Act.Play();
         }
         if (Obj0 == true)
         {
             Obj0.SetActive(true);
         }
         if (Obj1 == true)
         {
             Obj1.SetActive(true);
         }
     }
 }