Devlog 13


script for invetory using dnt destroy on load :

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class dntDestroy : MonoBehaviour {
public bool setrum;
public string objName;
//public float xPos = -91f;

// Use this for initialization
void Start () {
UIInventory.have = false;
UIInventory.have2 = false;
UIInventory.have3 = false;
setrum = true;
//xPos = -91f;
}

// Update is called once per frame
void Update () {
DontDestroyOnLoad (gameObject);
/*if(objName == "pintuDapur"){
xPos = -98.23597f;

}
if(objName == "pintu1"){
xPos = 0.34f;
}*/
}
}

Get Palasic

Leave a comment

Log in with itch.io to leave a comment.