essentially i want to push space bar and change the variable to true so that the log will say some the first string.
using UnityEngine;
using System.Collections;
public class LearningScript2 : MonoBehaviour
{
// Use this for initialization
void Start ()
{
bool boss = false;
//int temperature = 40;
if(Input.GetKeyUp(KeyCode.Space))
{
boss = true;
}
if (boss == true)
{
Debug.Log("This is True, Like a boss!");
}
else
{
Debug.Log ("not like a boss");
}
}
// Update is called once per frame
void Update () {
}
}