Inheritance: MonoBehaviour
示例#1
0
	void Start () {
		_up = Util.FindInHierarchy(_follow,"Up");
		_backwards = Util.FindInHierarchy(_follow,"Backwards");
		_control = _follow.GetComponent<CarControlScript>();
	}
示例#2
0
	void Start () {
		_body = gameObject.GetComponent<Rigidbody>();
		_backwards = Util.FindInHierarchy(this.gameObject,"Backwards");
		_up = Util.FindInHierarchy(this.gameObject,"Up");
		inst = this;
	}