BotNavSim  v0.4.3
Mobile Robot Simulation
RobotEditor Class Reference

Robot editor state machine. More...

Inheritance diagram for RobotEditor:
Collaboration diagram for RobotEditor:

Public Types

enum  State { State.inactive, State.editing }
 

Static Public Member Functions

static void Exit ()
 Exit this state machine. More...
 

Static Public Attributes

static RobotEditor Instance
 Singleton pattern for MonoBehaviour More...
 

Properties

static State state [get, private set]
 Gets the RobotEditor.State. More...
 

Private Member Functions

void Awake ()
 Awake this instance. More...
 

Detailed Description

Robot editor state machine.

Definition at line 7 of file RobotEditor.cs.

Member Enumeration Documentation

Enumerator
inactive 
editing 

Definition at line 10 of file RobotEditor.cs.

Member Function Documentation

void RobotEditor.Awake ( )
private

Awake this instance.

Instance Methods

Definition at line 39 of file RobotEditor.cs.

39  {
40  if (Instance == null) {
41  Instance = this;
42  } else {
43  Destroy(this);
44  }
45  }
static RobotEditor Instance
Singleton pattern for MonoBehaviour
Definition: RobotEditor.cs:18
static void RobotEditor.Exit ( )
static

Exit this state machine.

Definition at line 30 of file RobotEditor.cs.

30  {
31  state = State.inactive;
32  }
static State state
Gets the RobotEditor.State.
Definition: RobotEditor.cs:23

Member Data Documentation

RobotEditor RobotEditor.Instance
static

Singleton pattern for MonoBehaviour

Definition at line 18 of file RobotEditor.cs.

Property Documentation

State RobotEditor.state
staticgetprivate set

Gets the RobotEditor.State.

Definition at line 23 of file RobotEditor.cs.


The documentation for this class was generated from the following file: