using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using System.Linq;

public class NestedBuff

{

ย  ย  string nestedBuffname;

ย  ย  bool isUsing;

ย  ย  public List<string> nestedBuffs;

ย  ย  // Start is called before the first frame update

ย  ย  NestedBuff(List<string> nestedBuffname,bool IsUsing)

ย  ย  {

ย  ย  ย  ย  this.nestedBuffs = nestedBuffs.ToList();

ย  ย  ย  ย  this.IsUsing = IsUsing;

ย  ย  }

ย  ย  public string NestedBuffnameย  ย // property

ย  ย  {

ย  ย  ย  ย  get { return nestedBuffname; }

ย  ย  ย  ย  set { nestedBuffname = value; }

ย  ย  }

ย  ย  public bool IsUsingย  ย // property

ย  ย  {

ย  ย  ย  ย  get { return isUsing; }

ย  ย  ย  ย  set { isUsing = value; }

ย  ย  }


}

์ด๋ ‡๊ฒŒ ํด๋ž˜์Šค ์ •์˜ํ•˜๊ณ 


๋‹ค๋ฅธํŒŒ์ผ์—์„œ

nestedBuff = new NestedBuff(buffeffectSort,false);


์œผ๋กœ ๊ฐ์ฒด์ƒ์„ฑํ–ˆ๋Š”๋ฐย 


์ด๋Ÿฐ์˜ค๋ฅ˜๊ฐ€๋œธ

ย error CS0122: 'NestedBuff.NestedBuff(List<string>, bool)' is inaccessible due to its protection level