Commit 4f371b9e authored by Joshua DeRossett's avatar Joshua DeRossett

Added SwitchObject script and prefab

parent 1266fa3f
using UnityEngine;
using System.Collections;
public class SwitchObject : MonoBehaviour {
//Backing Field for the switch toggle on/off state.
private bool _isOn;
//Property accessor for the switch toggle on/off state; Currently can be read from and written to.
public bool IsOn {
get { return _isOn; }
set { _isOn = value; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment