Пример #1
0
    void Update()
    {
        if (!gameManager.tutoIsPlaying)
        {
            audi.volume     = gameManager.GetSoundValue();
            levelText.text  = string.Format("Level: {0}", unitLev); // 레벨 텍스트
            currentPosition = transform.localPosition;
            isFollow        = fusionManager.GetIsFollow();

            SetDistanceArrayIndex();

            onClickMouse();

            ODCheck();
            if (gameManager.GetCST())
            {
                ForwardODCheck();
                BackwardODCheck();
                EDCheck();
            }

            FusionCheck();

            Move();
            HealthBar();
            DestroyCheck();

            if (gameManager.GetCST())
            {
                AttackCheck();
            }
            SetMoveBack();
        }
    }