Esempio n. 1
0
 void Start()
 {
     inLockPosition         = true;
     currentMag             = 20;
     interactable           = GetComponent <CircularDrive>();
     MagnificationText.text = "Objektiivi: " + currentMag + "x";
 }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        rA = GetComponentInParent <Destruction_RadioAudio>();
        cD = this.gameObject.GetComponent <CircularDrive>();

        cD.maxAngle = rA.radioSongs.Length * 10 - 10;
    }
Esempio n. 3
0
    // Start is called before the first frame update
    void Start()
    {
        cD = this.gameObject.GetComponent <CircularDrive>();
        rA = GetComponentInParent <Destruction_RadioAudio>();

        cD.maxAngle = GetComponentInParent <AudioSource>().volume * 100f;
    }
    public void InitFlowMeters()
    {
        //Init Air
        driverKnobAir = knobAir.GetComponent <CircularDrive>();
        maxAngleIndicatorPressureAir = driverKnobAir.minAngle;
        valueIndicatorPressureAir    = getValueIndicatorPressureAir();
        StartCoroutine(PointerPositionAirStateMachineCoroutine());

        valueIndicatorBigAir = getValueIndicatorConeBigAir();
        StartCoroutine(ConePositionBigAirStateMachineCoroutine());

        //Init N2O
        driverKnobN2O = knobN2O.GetComponent <CircularDrive> ();
        maxAngleIndicatorPressureN2O = driverKnobN2O.minAngle;
        valueIndicatorPressureN2O    = getValueIndicatorPressureN2O();
        StartCoroutine(PointerPositionN2OStateMachineCoroutine());

        valueIndicatorSmallN2O = getValueIndicatorConeSmallN2O();
        StartCoroutine(ConePositionSmallN2OStateMachineCoroutine());
        StartCoroutine(ConePositionBigN2OStateMachineCoroutine());

        //Init O2
        driverKnobO2 = knobO2.GetComponent <CircularDrive> ();
        maxAngleIndicatorPressureO2 = driverKnobO2.minAngle;
        valueIndicatorPressureO2    = getValueIndicatorPressureO2();
        StartCoroutine(PointerPositionO2StateMachineCoroutine());

        valueIndicatorSmallO2 = getValueIndicatorConeSmallO2();
        StartCoroutine(ConePositionSmallO2StateMachineCoroutine());
        StartCoroutine(ConePositionBigO2StateMachineCoroutine());
    }
Esempio n. 5
0
 void Start()
 {
     main                   = particles.main;
     circularDrive          = handle.GetComponent <CircularDrive>();
     circularDrive.minAngle = minRestingPos;
     circularDrive.maxAngle = maxPouringPos;
 }
Esempio n. 6
0
 // Start is called before the first frame update
 void Awake()
 {
     AudioSources      = FindObjectOfType <GameManager>().AudioSources;
     ans               = FindObjectsOfType <Animator>();
     circularDrive     = GetComponent <CircularDrive>();
     interactComponent = GetComponent <Interactable>();
     outAngle          = circularDrive.outAngle;
 }
Esempio n. 7
0
    public void ResetOutAngle()
    {
        cd          = gameObject.GetComponent <CircularDrive>();
        cd.outAngle = 0;

        if (cd.maxAngle > 0)
        {
            audioSource.PlayOneShot(clip, 0.5f);
        }
    }
Esempio n. 8
0
 public override void Awake()
 {
     base.Awake();
     circularDrive = GetComponent <CircularDrive>();
 }
Esempio n. 9
0
 private void Awake()
 {
     Instance      = this;
     circularDrive = GetComponentInChildren <CircularDrive>();
     audio         = GetComponentInChildren <AudioSource>();
 }
 public override void Awake()
 {
     base.Awake();
     terminus      = GetComponent <Wheel>();
     circularDrive = GetComponent <CircularDrive>();
 }
 void Start()
 {
     drive = gameObject.GetComponent <CircularDrive>();
 }
Esempio n. 12
0
 private void Awake()
 {
     cD          = this.gameObject.GetComponent <CircularDrive>();
     rV          = GetComponentInParent <Destruction_RadioVolume>();
     radioVolume = GetComponentInParent <AudioSource>();
 }
 // Use this for initialization
 void Start()
 {
     driver = GetComponent <CircularDrive> ();
     audio  = GetComponent <AudioSource>();
 }