SwitchObject.cs 341 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
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; }
	}
}