PathfindingTest.Pathfinding.Node.Init C# (CSharp) Method

Init() private method

private Init ( int x, int y ) : void
x int
y int
return void
        private void Init(int x, int y)
        {
            Game1 game = Game1.GetInstance();
            this.x = x;
            this.y = y;
            texture = game.Content.Load<Texture2D>("Misc/node");
            this.c = Color.Red;
            this.onConnectionsCreatedListeners += this.OnConnectionsCreated;
            PathfindingNodeManager.GetInstance().AddNode(this);
        }