public void ActivateHighlightColor(Triggerable trig, bool activate)
 {
     if (renderer == null)
     {
         return;
     }
     Debug.Log("Skruh " + activate + " - " + (activate ? highlightMaterial : originalMaterial).name + " - " + (highlightMaterial == null) + " - " + (originalMaterial == null));
     renderer.material = activate ? highlightMaterial : originalMaterial;
 }
Exemplo n.º 2
0
        private void Start()
        {
            if (triggerable == null)
            {
                triggerable = GetComponent <Triggerable>();
            }

            /*if (triggerable != null)
             * {
             *  triggerable.OnStatusChanged += HandleTriggerableStatusChanged;
             * }*/
        }
Exemplo n.º 3
0
 public void HandleTriggerableStatusChanged(Triggerable trig, bool isTriggered)
 {
     Debug.Log("New Triggerable Status: " + isTriggered);
     if (isTriggered)
     {
         doOpenDoor  = true;
         doCloseDoor = false;
     }
     else
     {
         doCloseDoor = true;
         doOpenDoor  = false;
     }
 }
Exemplo n.º 4
0
 public void HandleTriggerableStateChanged(Triggerable triggerable, bool state)
 {
     ToggleObjects(state);
 }
Exemplo n.º 5
0
 public void HandleTriggerableStateChanged(TriggerSystemV2.Triggerable triggerable, bool state)
 {
     GlowEye(state);
 }