Devlog 7
Palasic » Devlog
Our Game Teaser on Youtube
Script for open a book :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Book : MonoBehaviour {
public Camera mainCamera;
public GameObject book;
public GameObject bookPosition;
public static GameObject bookclone;
public static int countBook;
public static bool clicked = false;
void OnMouseDown(){
Debug.Log (gameObject.name);
//clicked = !clicked;
charMoving.speed = 0f;
bookclone = Instantiate (book, bookPosition.transform.position, Quaternion.identity);
bookclone.transform.parent = mainCamera.transform;
UIInventory.have = true;
}
}
Get Palasic
Palasic
#BINUSGAT
Status | Prototype |
Author | Hopeless |
Genre | Puzzle |
Tags | binus, Ghosts, Horror, Indie, indonesia, jakarta, Puzzle-Platformer, Singleplayer, Survival Horror |
Leave a comment
Log in with itch.io to leave a comment.