cs
This commit is contained in:
24
code-csharp/LivingRoom_ComicBook.cs
Normal file
24
code-csharp/LivingRoom_ComicBook.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class LivingRoom_ComicBook : MonoBehaviour
|
||||
{
|
||||
public INT_Chat ComicbookChat;
|
||||
|
||||
public CHATBOXTEXT NewChat;
|
||||
|
||||
public SpriteRenderer ComicBookRenderer;
|
||||
|
||||
public Sprite FoldedSprite;
|
||||
|
||||
public AudioSource Source;
|
||||
|
||||
public AudioClip FoldSound;
|
||||
|
||||
public void FoldComicbook()
|
||||
{
|
||||
Source.PlayOneShot(FoldSound);
|
||||
ComicBookRenderer.sprite = FoldedSprite;
|
||||
ComicbookChat.Text = NewChat;
|
||||
PlayerPrefs.SetInt("PapyrusMeet_ComicSwan", 1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user