Devlog 8
Here ' s 80% progress of Palasic sfx and sound background music.
Link :
https://drive.google.com/open?id=0B0mdve3_APq8LTBWQnJPdy1JNHc
script for turn off switch behind refrigerator :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class geserKulkas : MonoBehaviour {
kulkasCamera verify;
public GameObject kulkas;
// Use this for initialization
void Start () {
verify = FindObjectOfType<kulkasCamera> ();
}
// Update is called once per frame
void Update () {
}
void OnMouseDown(){
kulkas.transform.position = new Vector2 (transform.position.x + 1.7f,0.07f);
verify.pindah = true;
Debug.Log ("geser");
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class kulkas : MonoBehaviour {
kulkasCamera verify;
// Use this for initialization
void Start () {
verify = FindObjectOfType<kulkasCamera> ();
}
// Update is called once per frame
void Update () {
//Debug.Log (charMoving.stay);
}
void OnTriggerEnter2D(Collider2D coll){
if(coll.gameObject.tag == "Player"){
charMoving.stay = true;
}
}
void OnTriggerStay2D(Collider2D coll){
if(coll.gameObject.tag == "Player"){
charMoving.stay = true;
}
}
void OnTriggerExit2D(Collider2D coll){
charMoving.stay = false;
}
void OnMouseDown(){
if(charMoving.stay == true){
verify.zoomed = !verify.zoomed;
Debug.Log ("hit");
}
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Saklar : MonoBehaviour {
dntDestroy listrik;
kulkasCamera verify;
public GameObject saklarOn;
public GameObject saklarOff;
public BoxCollider2D saklarTrigger;
float delayBack = 1.2f;
// Use this for initialization
void Start () {
verify = FindObjectOfType<kulkasCamera>();
listrik = FindObjectOfType<dntDestroy> ();
}
// Update is called once per frame
void Update () {
//if (verify.saklarCamera.enabled == true) {
if (tombolOff.on == true) {
saklarOff.SetActive(false);
saklarOn.SetActive(true);
} else if (tombolOff.on == false) {
saklarOff.SetActive(true);
saklarOn.SetActive(false);
listrik.setrum = false;
}
//}
}
IEnumerator delayBackScene()
{
if (delayBack > 0)
{
delayBack -= Time.deltaTime;
yield return 0;
}
else {
verify.zoomed = !verify.zoomed;
saklarTrigger.enabled = true;
}
}
/*void OnMouseDown() {
verify.zoomed = !verify.zoomed;
verify.obj = "Saklar";
}*/
void OnMouseDown(){
if (charMoving.stay == true) {
verify.zoomed = !verify.zoomed;
}
}
}
Files
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.