Inheritance: MonoBehaviour
コード例 #1
0
ファイル: FollowPlayerCar.cs プロジェクト: qwook/AGJ_Racing
	void Start () {
		_up = Util.FindInHierarchy(_follow,"Up");
		_backwards = Util.FindInHierarchy(_follow,"Backwards");
		_control = _follow.GetComponent<CarControlScript>();
	}
コード例 #2
0
ファイル: CarControlScript.cs プロジェクト: spotco/DerbyCars
	void Start () {
		_body = gameObject.GetComponent<Rigidbody>();
		_backwards = Util.FindInHierarchy(this.gameObject,"Backwards");
		_up = Util.FindInHierarchy(this.gameObject,"Up");
		inst = this;
	}