Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     laserSetup = GetComponent <LaserSetup>();
     StartCoroutine(ChangeLaser());
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     laserSetup           = GetComponent <LaserSetup>();
     laserSetup.direction = transform.rotation * new Vector3(0, 0, 1);
 }