Devlog 2


this is coding used for password door, if someone want go through this door they need open the door with password. For the password pin they need to search it and we give it some clue where's the password or what is the password pin :

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

public class getClikced : MonoBehaviour {
public static string correctCode = "233155";
public static string playerCode = "";

public static int totalDigits=0;
// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
Debug.Log (playerCode);
if(totalDigits == 6){
if(playerCode == correctCode){
Debug.Log ("correct");
playerCode = "";
totalDigits = 0;
}else {
playerCode = "";
totalDigits = 0;
Debug.Log ("wrong");
}
}
}

public void OnMouseDown(){
playerCode = playerCode + gameObject.name;
totalDigits++;
}
}

This is the UI for the title screen, but we still searching for the name :

Get Palasic

Comments

Log in with your itch.io account to leave a comment.

Please add today devlog

Please give information on what is the image about... what is the code about... use narration not just give useless data.

Already updated Mr.Dodick