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