Ejemplo n.º 1
0
		protected void Setup (Vector3 start, FloodPath flood, OnPathDelegate callback) {
			this.flood = flood;

			if (flood == null || flood.GetState () < PathState.Returned) {
				throw new System.ArgumentException ("You must supply a calculated FloodPath to the 'flood' argument");
			}

			base.Setup (start, flood.originalStartPoint, callback);
			nnConstraint = new FloodPathConstraint (flood);
		}
Ejemplo n.º 2
0
 protected void Setup(Vector3 start, FloodPath flood, OnPathDelegate callback)
 {
     this.flood = flood;
     if (flood == null || flood.GetState() < PathState.Returned)
     {
         throw new System.ArgumentNullException("You must supply a calculated FloodPath to the 'flood' argument");
     }
     base.Setup(start, flood.originalStartPoint, callback);
     nnConstraint = new FloodPathConstraint(flood);
     hasEndPoint  = false;
 }