public void SetUp(BulletStateCtrl p_projectileHandler) { _projectileHandler = p_projectileHandler; if (_bulletGraph != null) { _bulletWave = _bulletGraph.bulletWave; _currentPattern = _bulletWave.GetDefaultPattern(); } SetBulletLauncher(); }
public DanmakuEditor.BulletPattern GetBulletByID(string p_id) { if (patterns.Length <= 0) { return(null); } if (string.IsNullOrEmpty(p_id)) { return(patterns[0]); } var patternList = patterns.ToList(); BulletPattern s = patternList.Find(x => x._id == p_id); if (s == null) { return(patterns[0]); } return(s); }