class Hoge { public Hoge(Transform aho) { } public Hoge(bool aho, bool a=false) { } }
こんなクラスでコンストラクタもある。 それに対して以下で初期化
var a = new Hoge (this,transform);
以下のエラーになる。
error CS0121: The call is ambiguous between the following methods or properties: `Nar.Nar(UnityEngine.Transform)' and `Nar.Nar(bool, bool)'
public Hoge(bool aho, bool a=false)
のデフォルト引数を外すとOKだが・・・。