Commit ce87482a authored by Luke A Smith's avatar Luke A Smith

Merge branch 'SwitchObject' into 'master'

Added SwitchObject script and prefab

See merge request !13
parents 0ad0a4c2 4f371b9e
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