25 {
26 super.OnRPC(sender, rpc_type,ctx);
27
28 switch(rpc_type)
29 {
30 case PlantType.TREE_HARD:
31 SoundHardTreeFallingPlay();
32 break;
33
34 case PlantType.TREE_SOFT:
35 SoundSoftTreeFallingPlay();
36 break;
37
38 case PlantType.BUSH_HARD:
39 SoundHardBushFallingPlay();
40 break;
41
42 case PlantType.BUSH_SOFT:
43 SoundSoftBushFallingPlay();
44 break;
45 }
46 }