示例#1
0
 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;
 }
示例#2
0
 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));
 }
示例#3
0
文件: Player.cs 项目: anddonram/CODE3
        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);
        }
示例#4
0
        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);
            }
        }
示例#5
0
 protected override void Initialize()
 {
     base.Initialize();
     fog = FogOfWar.fog;
     ui  = UIBehavior.ui;
 }