Click or drag to resize

ColorObject_Example Class

Example of how to color an object
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          SimpleDemosColorObject_Example

Namespace:  SimpleDemos
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class ColorObject_Example : MonoBehaviour

The ColorObject_Example type exposes the following members.

Constructors
  NameDescription
Public methodColorObject_Example
Initializes a new instance of the ColorObject_Example class
Top
Methods
  NameDescription
Private methodStart
Initializes our colors to white to match our object
Private methodUpdate
Our game logic
Top
Fields
  NameDescription
Public fieldm_MyColor
The color that the user will set the object for themselves
Public fieldm_MyObjectToColor
Provides an easy way to access the object we want to change the color on.
Public fieldm_OpponentsColor
The color that the user will set the object for other users
Public fieldm_SendColor
Bool toggling the color send. It will automatically be set to false after it is set to true to save bandwidth
Top
See Also