public static Player Add(int id, float move_speed, float apply_speed, GameMgr gm, float x, float y, float z, GameObject mainCamera) { // Enemyインスタンスの取得 Player p = parent.Add(x, y, z); // IDを設定したり固有の処理をする p.SetParam(id); p.SetMoveSpeed(move_speed); p.SetApplySpeed(apply_speed); p.SetGmaeMgr(gm); p.SetStartFlag(false); p.SetMoveFlag(true); p.SetMainCamera(mainCamera); p.SetTankTower(); p.SetCanonPos(); p.SetTrailPrefab(); p.SetTrailPrefabMaterial(); return(p); }
public static ShotEffect Add(float x, float y, float z) { // Enemyインスタンスの取得 ShotEffect se = parent.Add(x, y, z); return(se); }
public static FloorMove Add(float x, float y) { FloorMove floor = parent.Add(x, y); floor.Init(); return(floor); }
public static EnemyShot Add(string tag_name, float x, float y, float z) { // Enemyインスタンスの取得 EnemyShot es = parent.Add(x, y, z); es.SetTagName(tag_name); return(es); }
public static PlayerShot Add(string tag_name, float x, float y, float z) { // Enemyインスタンスの取得 PlayerShot ps = parent.Add(x, y, z); ps.SetTagName(tag_name); return(ps); }
// ショットを撃つ public static Shot Add(float px, float py, float direction, float speed, int power) { Shot s = parent.Add<Shot>(px, py, direction, speed); if (s == null) { return null; } s.Init(power); return s; }
public static Particle Add(float x, float y) { Particle p = parent.Add(x, y); if (p) { p.SetVelocity(Random.Range(0, 359), Random.Range(2.0f, 4.0f)); p.SetScale(0.25f, 0.25f); } return(p); }
public static Tile Add(int id, float x, float y) { if (parent == null) { parent = new TokenMgr <Tile>("Tile"); } var t = parent.Add(x, y); t.Create(id); return(t); }
// プレハブから敵を至誠 public static Enemy Add(List <Vec2D> path) { Enemy e = parent.Add(0, 0); if (e == null) { return(null); } e.Init(path); return(e); }
// タワー生成 public static Tower2 Add(float px, float py) { Tower2 t = parent.Add <Tower2>(px, py); if (t == null) { return(null); } t.Init(); return(t); }
public static Particle Add(float x, float y) { Particle p = parent.Add(x, y); p.Scale = Random.Range(0.5f, 1.0f); float dir = Random.Range(0, 359); float spd = Random.Range(3.0f, 6.0f); p.SetVelocity(dir, spd); p.Timer = Random.Range(40, 60); return(p); }
public static Enemy Add(int id, float x, float y, float z, GameMgr gm) { // Enemyインスタンスの取得 Enemy e = parent.Add(x, y, z); e.SetGmaeMgr(gm); // IDを設定したり固有の処理をする e.SetParam(id); return(e); }
//ショットを打つ public static Shot Add(float px, float py, float direction, float speed, int power) { //初期化処理(Init)を呼び出すように修正 Shot s = parent.Add(px, py, direction, speed); if (s == null) { return(null); } s.Init(power); return(s); }
public static Particle Add(eType type, int timer, float px, float py, float direction, float speed) { Particle p = parent.Add(px, py, direction, speed); if (p == null) { return(null); } //初期化 p.Init(type, timer); return(p); }
/// 敵の追加 public static Enemy Add(int id, float x, float y, float direction, float speed) { Enemy e = parent.Add(x, y, direction, speed); if (e == null) { return(null); } // 初期パラメータ設定 e.SetParam(id); return(e); }
public static Hostage Add(int id, float move_speed, Vector3 pos, GameMgr gm, Player player) { Hostage hostage = parent.Add(pos.x, pos.y + 1, pos.z); hostage.SetParam(id); hostage.SetMoveSpeed(move_speed); hostage.SetGmaeMgr(gm); hostage.SetPlayer(player); return(hostage); }
public static Decoy Add(int id, GameMgr gm, Vector3 pos) { Decoy d = parent.Add(pos.x, pos.y, pos.z); d.SetParam(id); d.SetGmaeMgr(gm); d.SetIsDeath(false); d.SetHp(3); return(d); }
public static Particle Add(float x, float y) { Particle p = parent.Add(x, y); // ランダムでサイズや飛ばす方向や速度を変えたりする p.Scale = Random.Range(0.5f, 1.0f); float dir = Random.Range(0, 359); float spd = Random.Range(3.0f, 6.0f); p.SetVelocity(dir, spd); // 生存フレーム数は40~60 p.Timer = Random.Range(40, 60); return(p); }
public static Player Add(int id, float move_speed, float apply_speed, GameMgr gm, float x, float y, float z) { // Enemyインスタンスの取得 Player p = parent.Add(x, y, z); // IDを設定したり固有の処理をする p.SetParam(id); p.SetMoveSpeed(move_speed); p.SetApplySpeed(apply_speed); p.SetGmaeMgr(gm); return(p); }
public static Enemy Add(int id, float x, float y, float z, int stageID, GameMgr gm, ProbabilityMap pm) { // Enemyインスタンスの取得 Enemy e = parent.Add(x, y, z); e.SetGmaeMgr(gm); e.SetProbabilityMap(pm); e.SetStageID(stageID); // IDを設定したり固有の処理をする e.SetParam(id); e.SetTankTower(); e.SetCanonPos(); return(e); }
// 壁を作る public static Wall Add(float x, float y) { Wall w = parent.Add(x, y); return(w); }
public static Life Add(float x, float y, int num) { return(parent.Add(x + 16 * num, y)); }
public static Bullet Add(float x, float y, float direction, float speed) { return(parent.Add(x, y, direction, speed)); }
public static Spike Add(float x, float y) { return(parent.Add(x, y)); }