void Start() { text = GetComponent <TextMeshProUGUI>(); image = transform.parent.GetComponentInChildren <Image>(); reader = FindObjectOfType <FloppyReader>(); SoundManager.instance.PlayOnEmptyTrack(BG, true, true, 2.0f); SoundManager.instance.PlayOnEmptyTrack(Boot, false, false); awraf = CountDown; }
public void BeginInteraction(Transform cursor) { if (reader != null) { reader.UnloadFloppy(); reader = null; SoundManager.instance.PlayOnEmptyTrack(FloppyIn, false, false); } Rigidbody.isKinematic = false; Rigidbody.useGravity = false; Cursor = cursor; }