예제 #1
0
 void Start()
 {
     UpdateEnvironment();
     roomMate.GetComponent <Roommate>().enabled = true;
     //player = GetComponent<Player>();
     nightFilter.SetActive(false);
 }
예제 #2
0
    void Start()
    {
        rb2d = GetComponent <Rigidbody2D>();

        spriteRenderer        = GetComponent <SpriteRenderer>();
        spriteRenderer.sprite = playerSpriteNormal;
        roomMate.GetComponent <Roommate>().enabled = true;

        sleepButton.interactable    = false;
        talkButton.interactable     = false;
        eatButton.interactable      = false;
        useKnifeButton.interactable = false;
        CheckHunger();
    }