Beispiel #1
0
 public LightConsole AddLinkedLightConsole(LightConsole linkedConsole, Texture2D texture, Vector2 position)
 {
     LightConsole console = new LightConsole(texture, position);
     console.LinkConsole(linkedConsole);
     consoleList.Add(console);
     return console;
 }
Beispiel #2
0
        public void CheckLightConsole(LightConsole console)
        {
            if (playerTangible != PlayerObjectMode.None && console.playerTangible != PlayerObjectMode.None)
            {
                if (playerTangible != console.playerTangible) return;
            }

            if (!pressing) return;
            if (hitBox.CheckCollision(console.hitBox))
            {
                console.PressConsole(this, !CheckForAlreadyHeld());
            }
        }
Beispiel #3
0
 public LightConsole AddLightConsole(Texture2D texture, Vector2 position)
 {
     LightConsole console = new LightConsole(texture, position);
     consoleList.Add(console);
     return console;
 }
 public void LinkConsole(LightConsole console)
 {
     linkedConsole = console;
     console.linkedConsole = this;
 }