/// <summary> /// 魚のインスタンスを増やす関数です。 /// </summary> /// <param name="type">魚の種類です</param> /// <param name="fish_name">魚の名前です</param> public void FishCreate(BioType type, string fish_name) { var frame1 = new System.Diagnostics.StackFrame(1); var frame0 = new System.Diagnostics.StackFrame(0); Debug.LogFormat(" {0} <= {1} : {2} ", frame0.GetMethod().Name, frame1.GetType().Name, frame1.GetMethod().Name); DictionaryFix(fish_name); Vector3 waterScale = _water.transform.localScale; GameObject objResource = LoadRecource(type, fish_name); GameObject obj = GameObject.Instantiate(objResource); obj.transform.position = FirstPosition(waterScale); obj.transform.rotation = _firstDirection; obj.name = fish_name; _fishDictionary[fish_name].Push(obj); }