Devlog 11
Palasic » Devlog
script that we use for pop up the item that we get :using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class kardus : MonoBehaviour {
public GameObject dapatLentera;
bool freeze;
// Use this for initialization
void Start () {
freeze = false;
dapatLentera.SetActive (false);
}
// Update is called once per frame
void Update () {
if (freeze) {
Time.timeScale = 0;
} else {
Time.timeScale = 1;
dapatLentera.SetActive (false);
}
}
void OnTriggerEnter2D(Collider2D col)
{
if (col.gameObject.tag == "Player")
{
charMoving.stay = true;
}
}
void OnMouseDown(){
if(charMoving.stay == true){
UIInventory.have2 = true;
dapatLentera.SetActive (true);
freeze = !freeze;
}
}
}
Files
Prototype2.7z 37 MB
Jan 15, 2018
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.