コード例 #1
0
 public void StopSteering()
 {
     m_bArrived = false;
     m_path     = null;
     //rigidbody.velocity = Vector3.zero;
     m_wantedVelocity = Vector3.zero;
 }
コード例 #2
0
    //private IPathTerrain							m_pathTerrain;
    #endregion

    #region MonoBehaviour Functions
    void Awake()
    {
        m_path     = null;
        m_bArrived = false;
        //m_pathTerrain = null;
        m_pathStep = new PahtwayStep();
    }
コード例 #3
0
 public void SteerAlongPath(Vector3[] path, IPathTerrain pathTerrain)
 {
     //m_pathTerrain = pathTerrain;
     m_bArrived         = false;
     m_path             = new PolylinePathway(path.Length, path);
     m_path_index       = 0;
     m_seekPos          = m_path.Points[m_path_index];
     transform.position = m_seekPos;
 }
コード例 #4
0
 void Awake()
 {
     m_path        = null;
     m_bArrived    = false;
     m_pathTerrain = null;
 }
コード例 #5
0
 public void SteerAlongPath(Vector3[] path, IPathTerrain pathTerrain)
 {
     m_pathTerrain = pathTerrain;
     m_bArrived    = false;
     m_path        = new PolylinePathway(path.Length, path);
 }
コード例 #6
0
 public void StopSteering()
 {
     m_bArrived = false;
     m_path     = null;
     GetComponent <Rigidbody>().velocity = Vector3.zero;
 }
コード例 #7
0
 public void StopSteering()
 {
     m_bArrived           = false;
     m_path               = null;
     rigidbody2D.velocity = Vector2.zero;
 }
コード例 #8
0
	void Awake()
	{
		m_path = null;
		m_bArrived = false;
		m_pathTerrain = null;
	}
コード例 #9
0
	public void StopSteering()
	{
		m_bArrived = false;
		m_path = null;
		rigidbody.velocity = Vector3.zero;
	}
コード例 #10
0
	public void SteerAlongPath(Vector3[] path, IPathTerrain pathTerrain)
	{
		m_pathTerrain = pathTerrain;
		m_bArrived = false;
		m_path = new PolylinePathway(path.Length, path);
	}