Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "FireHolder")
     {
         FireHolder otherFireHolder = other.GetComponent <FireHolder>();
         if (isLit && !otherFireHolder.isLit)
         {
             otherFireHolder.LightUp();
             LightUp();
         }
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     pickup     = GetComponent <Pickup>();
     fireHolder = GetComponentInChildren <FireHolder>();
     fireHolder.LightUp();
 }