Example #1
0
 void CheckParams()
 {
     if (_rigidbody2d != null || _engine != null || _controller != null || _transform != null)
     {
         _state = BiPlaneState.Work;
     }
 }
Example #2
0
 void Start()
 {
     _rigidbody2d = GetComponent <Rigidbody2D>();
     _engine      = GetComponent <Engine>();
     _controller  = GetComponent <BiPlaneController>();
     _transform   = GetComponent <Transform>();
     if (_controller == null)
     {
         _state = BiPlaneState.Pause;
     }
 } //+