예제 #1
0
    public bool isDodge;  // trapType2FireAttack을 피하기 위한것
    #endregion


    private void Start()
    {
        if (SceneManager.GetActiveScene().name == "Tutorial_Scene_Ver2")
        {
            tutorialManagerVer2Script = GameObject.Find("TutorialManagerVer2").GetComponent <TutorialManagerVer2>();
        }

        playerColliderConScript = GetComponent <PlayerColliderCon>();
        rectTransform           = GetComponent <RectTransform>();
        rigid           = GetComponent <Rigidbody>();
        dodgeConScript  = GetComponent <PlayerDodgeCon>();
        animationScript = GetComponent <PlayerAniScript>();
        attackConScript = GetComponent <PlayerAttackCon>();
        spConScript     = GetComponent <PlayerSpCon>();
        cam             = FindObjectOfType <Camera>();

        isDodge = false;
        hP      = maxHP;

        playerHitted  = PlayerHitted.none;
        playerUIState = PlayerUI.invenOff;
        state         = PlayerState.idle;
        mousePlace    = MousePlace.top;

        instance = this;
        if (null == instance)
        {
            instance = this;
        }
    }
예제 #2
0
    private void Start()
    {
        attackConScript = GetComponent <PlayerAttackCon>();

        isPlayerDodgeSucess = false;
        isPlayerSpZero      = false;
        spUpCoolTime        = false;

        StopAllCoroutines();
        StartCoroutine("spUp");
    }