void Start() { inLockPosition = true; currentMag = 20; interactable = GetComponent <CircularDrive>(); MagnificationText.text = "Objektiivi: " + currentMag + "x"; }
// 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; }
// 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()); }
void Start() { main = particles.main; circularDrive = handle.GetComponent <CircularDrive>(); circularDrive.minAngle = minRestingPos; circularDrive.maxAngle = maxPouringPos; }
// 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; }
public void ResetOutAngle() { cd = gameObject.GetComponent <CircularDrive>(); cd.outAngle = 0; if (cd.maxAngle > 0) { audioSource.PlayOneShot(clip, 0.5f); } }
public override void Awake() { base.Awake(); circularDrive = GetComponent <CircularDrive>(); }
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>(); }
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>(); }