/// <summary> /// パラメータの設定 /// </summary> /// <param name="position">ドロップ位置</param> /// <param name="type">アイテムのタイプ</param> public void SetParameter(Vector3 position, StgItemConstant.Type type) { // データ追加 StgItemDropper dropper = new StgItemDropper(); dropper.SetPosition(position); dropper.SetType(type); dropList.Add(dropper); }
public GameObject Create(StgItemConstant.Type type) { if (type == StgItemConstant.Type.kPowerup) { return(Resources.Load(SceneShare.Instance.GetGameResourcePathData().Get(GameResourcePathDefine.Type.kItemPowerup)) as GameObject); } else if (type == StgItemConstant.Type.kScoreup) { return(Resources.Load(SceneShare.Instance.GetGameResourcePathData().Get(GameResourcePathDefine.Type.kItemScoreup)) as GameObject); } throw new System.ArgumentException("StgItemFactory::Create() invalid argument"); }
/// <summary> /// アイテムのタイプの設定 /// </summary> /// <param name="type">アイテムのタイプ</param> public void SetType(StgItemConstant.Type type) { this.type = type; }