Пример #1
0
    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;
    }
Пример #2
0
    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;
    }