Outline_Control.cs 617 B

123456789101112131415161718192021222324
  1. /* Outline_Control.cs
  2. * author: Yannic Seidler
  3. */
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. using Valve.VR;
  8. // Class that sets the color of the outliner and the outline width. The Outline.cs script outlines the robots if the laser hitts them.
  9. // Attached to robots in the SelectRobot scene.
  10. public class Outline_Control : MonoBehaviour
  11. {
  12. private Outline outLiner;
  13. private void Awake()
  14. {
  15. outLiner = GetComponent<Outline>();
  16. outLiner.OutlineColor = Color.yellow;
  17. outLiner.OutlineWidth = 5f;
  18. outLiner.enabled = false;
  19. }
  20. }