예제 #1
0
 // Use this for initialization
 void Start()
 {
     playerController = GetComponentInParent <PlayerController>();
     inventory        = GetComponentInParent <SkillInventory>();
     minSkillIndex    = 0;
     currentIndex     = 0;
 }
예제 #2
0
    // Constructor
    public NPCParam()
    {
        privateParams = PrivateParam.Default();
        param         = Param.Default();
        abilitys      = Abilitys.Default();
        resistance    = Resistance.Default();
        regeneration  = Regeneration.Default();

        itemInventory  = new ItemInventory(float.MaxValue, float.MaxValue);
        skillInventory = new SkillInventory();
        buffInventory  = new BuffInventory();
    }
예제 #3
0
    public static void SetDefault()
    {
        privateParams = PrivateParam.Default();
        param         = Param.Default();
        abilitys      = Abilitys.Default();
        resistance    = Resistance.Default();
        regeneration  = Regeneration.Default();

        itemInventory       = new ItemInventory(float.MaxValue, float.MaxValue);
        equipInventory      = new EquipInventory();
        skillInventory      = new SkillInventory();
        buffInventory       = new BuffInventory();
        professionInventory = new ProfessionInventory();
        recipeInventory     = new RecipeInventory();
        hotBarInventory     = new HotBarInventory();
    }
예제 #4
0
 void SetPlayers()
 {
     invenPlayer = transform.parent.GetComponent <SkillInventory>();
 }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     playerInventory  = GetComponentInParent <SkillInventory>();
     playerController = GetComponent <PlayerController>();
 }
예제 #6
0
 void Awake()
 {
     instance = this;
     skills   = new Skill[3];
 }