public void Init() { NormalPath = new WayPointCollection(); GhostPath = new WayPointCollection(); VendorPath = new WayPointCollection(); RepairPath = new WayPointCollection(); BranchPath = new WayPointCollection(); }
public Profile() { Name = ""; Description = ""; NormalWayPoints = new WayPointCollection(); GhostWayPoints = new WayPointCollection(); VendorWayPoints = new WayPointCollection(); RepairWayPoints = new WayPointCollection(); BranchWayPoints = new WayPointCollection(); Enemies = new EnemyCollection(); }
// Use this for initialization void Start() { wpc = GameObject.FindGameObjectWithTag("WayPointContainer").GetComponent ("WayPointCollection") as WayPointCollection; wp = wpc.GetNearestWayPoint (transform.position, wpl); }