// Use this for initialization void Start() { getItemController = GetComponent <GetItemController> (); touchPadUtil = GetComponent <TouchPadUtil> (); fishCnt = fishStick.Length; fishStatus = new RoastFishStatus[fishCnt]; for (int i = 0; i < fishCnt; i++) { Transform stick = fishStick [i].transform.GetChild(0); RoastFishDisplayer displayer = stick.GetChild(0).GetComponent <RoastFishDisplayer> (); fishStatus [i] = new RoastFishStatus(displayer, stick); } }
public RoastFishStatus(RoastFishDisplayer f, Transform t) { fish = f; stick = t; }