Example #1
0
 //Play one of the sounds in SFXTypes
 public void PlaySound(SFXTypes aSFX)
 {
     switch (aSFX)
     {
     case SFXTypes.button:
         mAudioSource.PlayOneShot(mButton);
         break;
     }
 }
 protected override void Read(OnlineReader Host)
 {
     Position = new Vector2(Host.ReadFloat(), Host.ReadFloat());
     SFXType  = (SFXTypes)Host.ReadByte();
 }
 public CreateSFXScriptClient(Vector2 Position, SFXTypes SFXType)
     : base(ScriptName)
 {
     this.Position = Position;
     this.SFXType  = SFXType;
 }