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; } }
private void Start() { player = GameObject.Find("Player"); playerBase = player.GetComponent <PlayerBase>(); playerHittedScr = player.GetComponent <PlayerHitted>(); }
void HandlePlayerTouchFromSide() { PlayerHitted?.Invoke(); }