void Start () { player = GameObject.FindGameObjectWithTag(Tags.player).transform; waypoints = transform.Find("WayPoints").GetComponent<WayPoints>(); CreateObs(); TargetPos = waypoints.points.Length - 2;//初始化下一个点 gameEnvCreater = Camera.main.GetComponent<GameEnvCreater>(); }
void Start() { player = GameObject.FindGameObjectWithTag(Tags.player).transform; waypoints = transform.Find("WayPoints").GetComponent <WayPoints>(); CreateObs(); TargetPos = waypoints.points.Length - 2;//初始化下一个点 gameEnvCreater = Camera.main.GetComponent <GameEnvCreater>(); }
// Use this for initialization void Start () { gameEvnCreater = Camera.main.GetComponent<GameEnvCreater>(); }
// Use this for initialization void Start() { gameEvnCreater = Camera.main.GetComponent <GameEnvCreater>(); }