﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Mires : MonoBehaviour {

    public GameObject quadLeft;
    public GameObject quadFront;
    public GameObject quadRight;
    public GameObject quadFloor;

	// Update is called once per frame
	void Update () {
        if (Input.GetKeyDown(KeyCode.Keypad1))
        {
            SwitchActivated(quadLeft);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad2))
        {
            SwitchActivated(quadFront);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad3))
        {
            SwitchActivated(quadRight);
        }
        else if (Input.GetKeyDown(KeyCode.Keypad4))
        {
            SwitchActivated(quadFloor);
        }

	}

    void SwitchActivated(GameObject go)
    {
        if (go == null) { return; }
        go.SetActive(!go.activeSelf);
    }
}
