Esempio n. 1
0
        public void Reset()
        {
            beamForwardVelocity = 10f;
            beamUpVelocity      = 3f;
            controllerSelection = EControllerSelection.Either;
            controllerButton    = EControllerButton.Touchpad;
            traceLayerMask      = 1 << LayerMask.NameToLayer("Default");
            teleportMaterial    = Resources.Load <Material>("BaroqueUI/TeleportPointer");

            validArcColor   = new Color(0.0f, 0.8f, 1.0f, 0.7f);
            invalidArcColor = new Color(0.8f, 0f, 0.3f, 0.7f);

            GameObject go = Resources.Load <GameObject>("BaroqueUI/Teleporting");

            invalidReticlePrefab     = go == null ? null : go.transform.Find("InvalidReticle");
            destinationReticlePrefab = go == null ? null : go.transform.Find("DestinationReticle");
        }
Esempio n. 2
0
 public bool Matches(EControllerSelection choice)
 {
     return(((int)choice & (1 << index)) != 0);
 }