public bool isDodge; // trapType2FireAttack을 피하기 위한것 #endregion void Awake() { isDodge = false; HP = maxHP; playerRectTransform = GetComponent <RectTransform>(); playerRigid = GetComponent <Rigidbody>(); playerDodgeConScript = GetComponent <playerDodgeCon>(); playerAnimationScript = GetComponent <Player_Animation_Script>(); playerAttackConScript = GetComponent <playerAttackCon>(); playerSpConScript = GetComponent <playerSpCon>(); cam = FindObjectOfType <Camera>(); PlayerUI = PlayerUI.invenOff; state = PlayerState.idle; mousePlace = MousePlace.top; stunParticleObj = transform.Find("paticlePos").gameObject; stunParticleObj.SetActive(false); instance = this; if (null == instance) { instance = this; } }
private void Awake() { playerAttackConScript = GetComponent <playerAttackCon>(); isPlayerDodgeSucess = false; isPlayerSpZero = false; spUpCoolTime = false; StopAllCoroutines(); StartCoroutine("spUp"); }