Exemplo n.º 1
0
 private void Start()
 {
     spConScript    = GetComponent <PlayerSpCon>();
     aniConScript   = GetComponent <PlayerAniScript>();
     dodgeConScript = GetComponent <PlayerDodgeCon>();
     inputScript    = GetComponent <PlayerInputScript>();
 }
Exemplo n.º 2
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;
        }
    }
Exemplo n.º 3
0
    private void Start()
    {
        forTutorialMonsterCheckOnce = false;

        isCool   = false;
        isSucess = false;

        inputScript       = GetComponent <PlayerInputScript>();
        playerSpConScript = GetComponent <PlayerSpCon>();
    }
Exemplo n.º 4
0
    private void Start()
    {
        playerSpConScript       = GetComponent <PlayerSpCon>();
        inputScript             = GetComponent <PlayerInputScript>();
        playerAnimationScript   = GetComponent <PlayerAniScript>();
        playerParticleConScript = GetComponent <PlayerParticleCon>();

        WeaponStateEnum = WeaponState.normalSword;


        for (int i = 0; i < 3; i++)
        {
            playerSwordBoxCollider[i].enabled = false;
        }

        onceCheck[2] = false;
        onceCheck[3] = false;

        isCool = false;
    }
Exemplo n.º 5
0
 private void Start()
 {
     aniScript   = GetComponent <PlayerAniScript>();
     inputScript = GetComponent <PlayerInputScript>();
     spConScript = GetComponent <PlayerSpCon>();
 }