Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
four
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
31
Issues
31
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
gadig
four
Commits
4f371b9e
Commit
4f371b9e
authored
Oct 20, 2016
by
Joshua DeRossett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SwitchObject script and prefab
parent
1266fa3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
Assets/SwitchObject.prefab
Assets/SwitchObject.prefab
+0
-0
Assets/scene/base.unity
Assets/scene/base.unity
+0
-0
Assets/script/SwitchObject.cs
Assets/script/SwitchObject.cs
+12
-0
No files found.
Assets/SwitchObject.prefab
0 → 100644
View file @
4f371b9e
File added
Assets/scene/base.unity
0 → 100644
View file @
4f371b9e
File added
Assets/script/SwitchObject.cs
0 → 100644
View file @
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
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment