Answer by Robinmtb
Hi! This should do the trick :) int WaypointIndex = Array.IndexOf(Waypoints, TargetTile); //Find index of reached waypoint List temp = new List(Waypoints); //Duplicate old Array into a List...
View ArticleAnswer by Robinmtb
Hi! First I'll repost your code with breaks so it's easier to read :D using UnityEngine; using System.Collections; public class HealthTrigger : MonoBehaviour { //Use this for initilization void Start...
View ArticleAnswer by Robinmtb
Hi Tonts! You can make a grid like that like this: public var gridObject : Transform; //The floor-object in your project public var gridElementsX = 6; //Number of grid elements in X-axis public var...
View ArticleAnswer by Robinmtb
Hi! This should do the trick :) int WaypointIndex = Array.IndexOf(Waypoints, TargetTile); //Find index of reached waypoint List temp = new List(Waypoints); //Duplicate old Array into a List...
View ArticleAnswer by Robinmtb
Hi! First I'll repost your code with breaks so it's easier to read :D using UnityEngine; using System.Collections; public class HealthTrigger : MonoBehaviour { //Use this for initilization void Start...
View ArticleAnswer by Robinmtb
Hi Tonts! You can make a grid like that like this: public var gridObject : Transform; //The floor-object in your project public var gridElementsX = 6; //Number of grid elements in X-axis public var...
View Article