Example #1
0
		public List<Vector3> altPath=new List<Vector3>(); //for checking if there's any block
		
		public void Init(PlatformTD platform){
			parentPlatform=platform;
			
			startN=PathFinder.GetNearestNode(connectStart.position, platform.GetNodeGraph());
			endN=PathFinder.GetNearestNode(connectEnd.position, platform.GetNodeGraph());
			
			path.Add((connectStart.position+connectEnd.position)/2);
			
			SearchNewPath(platform.GetNodeGraph());
		}
Example #2
0
        public List <Vector3> altPath = new List <Vector3>();     //for checking if there's any block

        public void Init(PlatformTD platform)
        {
            parentPlatform = platform;

            startN = PathFinder.GetNearestNode(connectStart.position, platform.GetNodeGraph());
            endN   = PathFinder.GetNearestNode(connectEnd.position, platform.GetNodeGraph());

            path.Add((connectStart.position + connectEnd.position) / 2);

            SearchNewPath(platform.GetNodeGraph());
        }