コード例 #1
0
 public void initializeStatus()
 {
     Debug.Log("추가스텟 로딩");
     additionalStatus = GameObject.FindGameObjectWithTag("GameManager").GetComponent <AdditionalStatus>();
     Debug.Log("추가스텟 공격 " + additionalStatus.getAdditionalDamage());
     loadWholeStatus(this.tag);
 }
コード例 #2
0
    //케릭터의 스텟을 불러오는 부분입니다.
    void loadWholeStatus(string CharacterName)
    {
        //케릭터의 이름에따라 스텟을 불러옵니다.
        switch (CharacterName)
        {
        case "Player":
            HP             = 100f + additionalStatus.getAdditionalHP();
            attackPower    = 10f + additionalStatus.getAdditionalDamage();
            stunPercentage = 100f + additionalStatus.getAdditionalStunPercent();
            evil           = additionalStatus.GetEvilValue();

            break;

        case "People":
            HP             = 120f;
            attackPower    = 15f;
            stunPercentage = 0f;
            evil           = 0f;

            break;
        }
    }