Пример #1
0
 public void DragHeadphones()
 {
     Headphones.transform.position = Input.mousePosition;
     HeadphonesTekst.SetActive(true);
     if (!Song.isPlaying && !Songplayed)
     {
         Songplayed = true;
         Song.Play();
     }
 }
Пример #2
0
    public void DropHeadphones()
    {
        float Distance = Vector3.Distance(Headphones.transform.position, HeadphonesB.transform.position);

        if (Distance < 50)
        {
            Headphones.transform.position = HeadphonesB.transform.position;
            HeadphonesCorrect             = true;
        }
        else
        {
            Headphones.transform.position = HeadphonesInitialPos;
        }
        HeadphonesTekst.SetActive(false);
    }
Пример #3
0
 private void Start()
 {
     BookInitialPos       = Book.transform.position;
     WatchInitialPos      = Watch.transform.position;
     SweaterInitialPos    = Sweater.transform.position;
     HeadphonesInitialPos = Headphones.transform.position;
     PictureInitialPos    = Picture.transform.position;
     TrainTickInitialPos  = TrainTick.transform.position;
     continueButton.SetActive(false);
     BookTekst.SetActive(false);
     SweaterTekst.SetActive(false);
     HeadphonesTekst.SetActive(false);
     WatchTekst.SetActive(false);
     PictureTekst.SetActive(false);
     TrainTickTekst.SetActive(false);
 }