public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                textCon            = changeText.GetComponent <RouteTranslucentConTextChange>();
                translucentSetting = eventManager.GetComponent <Config>();

                if (translucentSetting.routeTranslucent > 0)
                {
                    translucentSetting.routeTranslucent--;
                }

                routeTranslucent = (float)translucentSetting.routeTranslucent;

                point1.GetComponent <Image>().color     = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                line1.GetComponent <Image>().color      = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                square1.GetComponent <Image>().color    = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                point2.GetComponent <Image>().color     = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                line2.GetComponent <Image>().color      = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                square2.GetComponent <Image>().color    = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                jointLine1.GetComponent <Image>().color = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                jointLine2.GetComponent <Image>().color = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                circle.GetComponent <Image>().color     = new Color(1f, 1f, 1f, routeTranslucent / 100f);

                textCon.TextUpdate();
                manipulateHand.airTap = false;
            }

            if (manipulateHand.drag)
            {
                textCon            = changeText.GetComponent <RouteTranslucentConTextChange>();
                translucentSetting = eventManager.GetComponent <Config>();

                if (translucentSetting.routeTranslucent > 0)
                {
                    translucentSetting.routeTranslucent--;
                }

                routeTranslucent = (float)translucentSetting.routeTranslucent;

                point1.GetComponent <Image>().color     = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                line1.GetComponent <Image>().color      = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                square1.GetComponent <Image>().color    = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                point2.GetComponent <Image>().color     = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                line2.GetComponent <Image>().color      = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                square2.GetComponent <Image>().color    = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                jointLine1.GetComponent <Image>().color = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                jointLine2.GetComponent <Image>().color = new Color(1f, 1f, 1f, routeTranslucent / 100f);
                circle.GetComponent <Image>().color     = new Color(1f, 1f, 1f, routeTranslucent / 100f);

                textCon.TextUpdate();
            }
        }
    }
Example #2
0
    public void Start()
    {
        manipulateHand = eventManager.GetComponent <HoloGuideInput>();
        powerSetting   = eventManager.GetComponent <Config>();
        menuState      = eventManager.GetComponent <ContentsVisible>();

        /*emergencyIcons.SetActive(false);
         * mapIcons.SetActive(true);
         * routeIcons.SetActive(false);
         * lineIcons.SetActive(false);
         * clockIcons.SetActive(false);
         * noticeIcons.SetActive(false);*/
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                textCon            = changeText.GetComponent <MapTranslucentConTextChange>();
                translucentSetting = eventManager.GetComponent <Config>();

                if (translucentSetting.mapTranslucent < 100)
                {
                    translucentSetting.mapTranslucent++;
                }

                mapTranslucent = (float)translucentSetting.mapTranslucent;

                mapContent.GetComponent <Image>().color      = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                mapBase.GetComponent <Image>().color         = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                scaleConBase.GetComponent <Image>().color    = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                scaleUpButton.GetComponent <Image>().color   = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                scaleDownButton.GetComponent <Image>().color = new Color(1f, 1f, 1f, mapTranslucent / 100f);

                textCon.TextUpdate();
                manipulateHand.airTap = false;
            }

            if (manipulateHand.drag)
            {
                textCon            = changeText.GetComponent <MapTranslucentConTextChange>();
                translucentSetting = eventManager.GetComponent <Config>();

                if (translucentSetting.mapTranslucent < 100)
                {
                    translucentSetting.mapTranslucent++;
                }

                mapTranslucent = (float)translucentSetting.mapTranslucent;

                mapContent.GetComponent <Image>().color      = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                mapBase.GetComponent <Image>().color         = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                scaleConBase.GetComponent <Image>().color    = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                scaleUpButton.GetComponent <Image>().color   = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                scaleDownButton.GetComponent <Image>().color = new Color(1f, 1f, 1f, mapTranslucent / 100f);
                textCon.TextUpdate();
            }
        }
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                runContent.SetActive(true);
                theFirstVictim.SetActive(false);
                theSecondVictim.SetActive(false);
                theThirdVictim.SetActive(false);
                manipulateHand.airTap = false;
            }
        }
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                if (translucentConWindow.activeSelf == false && this.transform.position == canEnterPosition)
                {
                    translucentConWindow.SetActive(true);
                }

                manipulateHand.airTap = false;
            }
        }
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                editMode          = eventManager.GetComponent <ContentsVisible>();
                editMode.editMode = true;
                menuContent.SetActive(false);
                editContent.transform.localPosition = new Vector3(0, 0, 0);
                effectRoute.SetActive(true);
                manipulateHand.airTap = false;
            }
        }
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                manipulateHand.airTap = false;
            }
            else if (manipulateHand.drag == true)
            {
                effect.transform.position       = cursor.transform.position;
                clockContent.transform.position = effect.transform.position;
            }
        }
    }
Example #8
0
    public void Update()
    {
        manipulateHand = eventManager.GetComponent <HoloGuideInput>();
        if (manipulateHand.drag == false)
        {
            SubIconsPositionFix();
        }

        if (subIcons.transform.localPosition.y <= 100)
        {
            firstIcon.transform.localPosition  = new Vector3(0f, -200f, 0f);
            secondIcon.transform.localPosition = new Vector3(0f, -400f, 0f);
            thirdIcon.transform.localPosition  = new Vector3(0f, -600f, 0f);
            fourthIcon.transform.localPosition = new Vector3(0f, -800f, 0f);
        }
        else if (subIcons.transform.localPosition.y <= 300 && subIcons.transform.localPosition.y >= 100)
        {
            firstIcon.transform.localPosition  = new Vector3(0f, 0f, 0f);
            secondIcon.transform.localPosition = new Vector3(0f, -400f, 0f);
            thirdIcon.transform.localPosition  = new Vector3(0f, -600f, 0f);
            fourthIcon.transform.localPosition = new Vector3(0f, -800f, 0f);
        }
        else if (subIcons.transform.localPosition.y <= 500 && subIcons.transform.localPosition.y >= 300)
        {
            firstIcon.transform.localPosition  = new Vector3(0f, 0f, 0f);
            secondIcon.transform.localPosition = new Vector3(0f, -200f, 0f);
            thirdIcon.transform.localPosition  = new Vector3(0f, -600f, 0f);
            fourthIcon.transform.localPosition = new Vector3(0f, -800f, 0f);
        }
        else if (subIcons.transform.localPosition.y <= 700 && subIcons.transform.localPosition.y >= 500)
        {
            firstIcon.transform.localPosition  = new Vector3(0f, 0f, 0f);
            secondIcon.transform.localPosition = new Vector3(0f, -200f, 0f);
            thirdIcon.transform.localPosition  = new Vector3(0f, -400f, 0f);
            fourthIcon.transform.localPosition = new Vector3(0f, -800f, 0f);
        }
        else if (subIcons.transform.localPosition.y >= 700)
        {
            firstIcon.transform.localPosition  = new Vector3(0f, 0f, 0f);
            secondIcon.transform.localPosition = new Vector3(0f, -200f, 0f);
            thirdIcon.transform.localPosition  = new Vector3(0f, -400f, 0f);
            fourthIcon.transform.localPosition = new Vector3(0f, -600f, 0f);
        }
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                setting = eventManager.GetComponent <Config>();

                if (setting.mapScale != 3 && setting.sizeConTargetObject == 1)
                {
                    setting.mapScale = 3;
                    mapContent.transform.localScale = new Vector3(0.7f, 0.7f, 1.0f);
                    mapEffect.transform.localScale  = new Vector3(0.7f, 0.7f, 1.0f);
                    target.transform.localPosition  = new Vector3(-150, 30, 0);
                    manipulateHand.airTap           = false;
                    window.SetActive(false);
                }

                if (setting.routeScale != 3 && setting.sizeConTargetObject == 2)
                {
                    setting.routeScale = 3;
                    routeContent.transform.localScale = new Vector3(0.7f, 0.7f, 1.0f);
                    routeEffect.transform.localScale  = new Vector3(0.7f, 0.7f, 1.0f);
                    target.transform.localPosition    = new Vector3(-150, 30, 0);
                    manipulateHand.airTap             = false;
                    window.SetActive(false);
                }

                if (setting.clockScale != 3 && setting.sizeConTargetObject == 3)
                {
                    setting.clockScale = 3;
                    clockContent.transform.localScale = new Vector3(0.7f, 0.7f, 1.0f);
                    clockEffect.transform.localScale  = new Vector3(0.7f, 0.7f, 1.0f);
                    target.transform.localPosition    = new Vector3(-150, 30, 0);
                    manipulateHand.airTap             = false;
                    window.SetActive(false);
                }
            }
        }
    }
Example #10
0
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                textCon            = changeText.GetComponent <ClockTranslucentConTextChange>();
                translucentSetting = eventManager.GetComponent <Config>();

                if (translucentSetting.clockTranslucent < 100)
                {
                    translucentSetting.clockTranslucent++;
                }

                clockTranslucent = (float)translucentSetting.clockTranslucent;

                clockBackGroundImage.GetComponent <Image>().color = new Color(1f, 1f, 1f, clockTranslucent / 100f);

                textCon.TextUpdate();
                manipulateHand.airTap = false;
            }

            if (manipulateHand.drag)
            {
                textCon            = changeText.GetComponent <ClockTranslucentConTextChange>();
                translucentSetting = eventManager.GetComponent <Config>();

                if (translucentSetting.clockTranslucent < 100)
                {
                    translucentSetting.clockTranslucent++;
                }

                clockTranslucent = (float)translucentSetting.clockTranslucent;

                clockBackGroundImage.GetComponent <Image>().color = new Color(1f, 1f, 1f, clockTranslucent / 100f);

                textCon.TextUpdate();
            }
        }
    }
Example #11
0
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();
            powerSetting   = eventManager.GetComponent <Config>();
            menuState      = eventManager.GetComponent <ContentsVisible>();

            if (manipulateHand.press == true && manipulateHand.drag == false)
            {
                offSet = subIcons.transform.position - cursor.transform.position;
            }

            if (manipulateHand.drag == true)
            {
                if (menuState.editMode == false)
                {
                    subIcons.transform.position = new Vector3(anchor.transform.position.x, cursor.transform.position.y + offSet.y, referenceCanvas.transform.position.z);
                }
            }
        }
    }
Example #12
0
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();
            powerSetting   = eventManager.GetComponent <Config>();
            menuState      = eventManager.GetComponent <ContentsVisible>();

            if (manipulateHand.airTap == true)
            {
                if (powerSetting.menuPower == false)
                {
                    manipulateHand.airTap = false;
                    menu.SetActive(true);
                    menuState.MenuAlive();
                    powerSetting.menuPower = true;
                }
                else if (powerSetting.menuPower == true && menuState.editMode == true)
                {
                    manipulateHand.airTap = false;
                    menu.SetActive(true);
                    menuState.editMode = false;
                    menuState.MenuAlive();
                    effectMap.SetActive(false);
                    effectRoute.SetActive(false);
                    effectClock.SetActive(false);
                }
                //(powerSetting.menuPower == true && menuState.editMode == false)
                else
                {
                    manipulateHand.airTap  = false;
                    powerSetting.menuPower = false;
                    menu.SetActive(false);
                    menuState.MenuDead();
                }
            }
        }
    }
    public void OnTriggerStay2D(Collider2D other)
    {
        if (other.gameObject.tag == "cursor")
        {
            manipulateHand = eventManager.GetComponent <HoloGuideInput>();

            if (manipulateHand.airTap == true)
            {
                powerSetting = eventManager.GetComponent <Config>();

                if (powerSetting.clockPower == true)
                {
                    powerSetting.clockPower = false;
                    manipulateHand.airTap   = false;
                }
                else if (powerSetting.clockPower == false)
                {
                    powerSetting.clockPower = true;
                    manipulateHand.airTap   = false;
                }
            }
        }
    }
Example #14
0
 public void Start()
 {
     manipulateHand = eventManager.GetComponent <HoloGuideInput>();
     powerSetting   = eventManager.GetComponent <Config>();
     menuState      = eventManager.GetComponent <ContentsVisible>();
 }
Example #15
0
    public void Update()
    {
        manipulateHand = eventManager.GetComponent <HoloGuideInput>();
        if (manipulateHand.drag == false)
        {
            IconsPositionFix();
        }

        if (menuIcons.transform.localPosition.x >= 125f && menuIcons.transform.localPosition.x <= 375f)
        {
            emergencyIcons.SetActive(true);
            mapIcons.SetActive(false);
            routeIcons.SetActive(false);
            lineIcons.SetActive(false);
            clockIcons.SetActive(false);
            noticeIcons.SetActive(false);
        }
        else if (menuIcons.transform.localPosition.x <= 125f && menuIcons.transform.localPosition.x >= -125f)
        {
            emergencyIcons.SetActive(false);
            mapIcons.SetActive(true);
            routeIcons.SetActive(false);
            lineIcons.SetActive(false);
            clockIcons.SetActive(false);
            noticeIcons.SetActive(false);
        }
        else if (menuIcons.transform.localPosition.x <= -125f && menuIcons.transform.localPosition.x >= -375f)
        {
            emergencyIcons.SetActive(false);
            mapIcons.SetActive(false);
            routeIcons.SetActive(true);
            lineIcons.SetActive(false);
            clockIcons.SetActive(false);
            noticeIcons.SetActive(false);
        }
        else if (menuIcons.transform.localPosition.x <= -375f && menuIcons.transform.localPosition.x >= -625f)
        {
            emergencyIcons.SetActive(false);
            mapIcons.SetActive(false);
            routeIcons.SetActive(false);
            lineIcons.SetActive(true);
            clockIcons.SetActive(false);
            noticeIcons.SetActive(false);
        }
        else if (menuIcons.transform.localPosition.x <= -625f && menuIcons.transform.localPosition.x >= -875f)
        {
            emergencyIcons.SetActive(false);
            mapIcons.SetActive(false);
            routeIcons.SetActive(false);
            lineIcons.SetActive(false);
            clockIcons.SetActive(true);
            noticeIcons.SetActive(false);
        }
        else if (menuIcons.transform.localPosition.x <= -875f && menuIcons.transform.localPosition.x >= -1125)
        {
            emergencyIcons.SetActive(false);
            mapIcons.SetActive(false);
            routeIcons.SetActive(false);
            lineIcons.SetActive(false);
            clockIcons.SetActive(false);
            noticeIcons.SetActive(true);
        }

        iconMask.transform.position = menuIcons.transform.position;
    }