コード例 #1
0
ファイル: c000238.cs プロジェクト: bing2008/CastNetGame
 public void m000003()
 {
     if (this.f00020b.IsDisposed)
     {
         this.f00020b = c000031.LoadSoundEffect(@"MP3\SuperWeaponAlert").CreateInstance();
         this.f00020b.IsLooped = true;
         this.f00020b.Volume = GameSetting.Instance().m000307() * 0.2f;
     }
     this.f000001 = enum0239.f000043;
     this.f00020b.Play();
     this.f00013c.m000023(new Vector2(420f, 450f));
     this.f00013c.m00002f().m000356(true);
     this.f0001ab.m00002f().m000356(true);
 }
コード例 #2
0
ファイル: c000238.cs プロジェクト: bing2008/CastNetGame
        public void m000025(float p0)
        {
            if (this.f000038.m000147() == enum023a.f000083)
            {
                if (this.f0001ab.m00002f().m000153() > 0f)
                {
                    this.f0001ab.m00002f().m00025a(0f);
                }
            }
            else if (this.f0001ab.m00002f().m000153() < 1f)
            {
                this.f0001ab.m00002f().m00025a(1f);
            }
            switch (this.f000001)
            {
                case enum0239.f000043:
                    this.f00013c.m000023(this.f00013c.m000022() - new Vector2(0f, 0.5f * p0));
                    if (this.f00013c.m000022().Y >= 200f)
                    {
                        break;
                    }
                    this.f000001 = enum0239.f000044;
                    this.f000031 = 0f;
                    return;

                case enum0239.f000044:
                    this.f000031 += p0;
                    if (this.f000031 > 500f)
                    {
                        c000075 c1 = this.f00013c.m00002f();
                        c1.m00025a(c1.m000153() - (0.005f * p0));
                        if (this.f00013c.m00002f().m000153() <= 0.1f)
                        {
                            this.f00020b.Stop();
                            this.f000001 = enum0239.f000001;
                            this.f00013c.m00002f().m00025a(1f);
                            this.f00013c.m00002f().m000356(false);
                            this.f000031 = 0f;
                        }
                    }
                    break;

                default:
                    return;
            }
        }