Beispiel #1
0
        public static DoorHandler GetInstance()
        {
            if ( instance == null ) {
                instance = new DoorHandler();
                Player.Clicked += new EventHandler<Events.PlayerClickedEventArgs>( PlayerClickedDoor );
                Player.PlacingBlock += new EventHandler<Events.PlayerPlacingBlockEventArgs>( PlayerPlacedDoor );
            }

            return instance;
        }
Beispiel #2
0
        public static DoorHandler GetInstance()
        {
            if (instance == null)
            {
                instance             = new DoorHandler();
                Player.Clicked      += new EventHandler <Events.PlayerClickedEventArgs>(PlayerClickedDoor);
                Player.PlacingBlock += new EventHandler <Events.PlayerPlacingBlockEventArgs>(PlayerPlacedDoor);
            }

            return(instance);
        }