Example #1
0
 public void SetStateFall()
 {
     if (mState == cylinderState.Start)
     {
         mState = cylinderState.Fall;
     }
 }
Example #2
0
 public void SetStateLand(bool force = false)
 {
     if ((mState == cylinderState.Fall) || force)
     {
         mState = cylinderState.Land;
     }
 }
Example #3
0
 public void SetStateStart()
 {
     if (mState == cylinderState.Ready)
     {
         mState = cylinderState.Start;
     }
 }
Example #4
0
    // Use this for initialization
    void Awake()
    {
        rb        = this.GetComponent <Rigidbody>();
        mRenderer = GetComponent <Renderer>();
        mLight    = GetComponent <Light>();
        mState    = cylinderState.Ready;

        mPlayerControl = GameObject.Find("Controller").GetComponent <PlayerControl>();
        StartCoroutine("SetupEmissionB");
    }