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