示例#1
0
    private void Start()
    {
        target = GameObject.FindWithTag("MORPG_Player").GetComponent <Transform>();
        agent  = GetComponent <NavMeshAgent>();
        combat = GetComponent <MORPG_CharacterCombat>();

        stats = GetComponent <MORPG_CharacterStats>();

        anim            = GetComponentInChildren <Animator>();
        respawnPosition = transform.position;
    }
    void Start()
    {
        motor  = GetComponent <MORPG_PlayerMotor>();
        anim   = GetComponent <Animator>();
        combat = GetComponent <MORPG_CharacterCombat>();
        stats  = GetComponent <MORPG_CharacterStats>();


        // 플레이어 스텟 설정하기
        stats.damage     = PlayerInformation.userData.TotalAtk;
        stats.maxDefence = stats.currentDefence = PlayerInformation.userData.def;
        stats.maxHealth  = stats.currentHealth = PlayerInformation.userData.hp;
    }