protected override void Initialize() { base.Initialize(); //Reset the hover, otherwise it will stay forever if reloaded, because its static MouseEnterBehavior.numHover = 0; map = Map.map; fog = FogOfWar.fog; }
public DStarLite() { map = Map.map; fog = FogOfWar.fog; //the adjacency neighbor list adjPoints = new List <Point>(); adjPoints.Add(new Point(0, 1)); adjPoints.Add(new Point(1, 0)); adjPoints.Add(new Point(-1, 0)); adjPoints.Add(new Point(0, -1)); }
public void SetResources() { woodAmount = 5000; keysBehavior = RenderManager.ActiveCamera2D.Owner.FindComponent <KeysBehavior>(); ui = UIBehavior.ui; map = Map.map; fog = FogOfWar.fog; PathDrawable draw = new PathDrawable(); draw.SetPlayer(this, path); Owner.AddComponent(draw); }
public void SetResources() { woodAmount = 5000; if (isLocalPlayer) { networkService = (Owner.Scene as NetworkedScene).networkService; keysBehavior = RenderManager.ActiveCamera2D.Owner.FindComponent <KeysBehavior>(); ui = UIBehavior.ui; map = Map.map; fog = FogOfWar.fog; PathDrawable draw = new PathDrawable(); draw.SetPlayer(this, path); Owner.AddComponent(draw); } }
protected override void Initialize() { base.Initialize(); fog = FogOfWar.fog; ui = UIBehavior.ui; }