示例#1
0
	protected override void HandleMsg2(EPhotonMsg pReceivedMsg, object[] pParams, ByteBuffer bb)
	{
		switch(pReceivedMsg)
		{
			case EPhotonMsg.MapItem_Init:
				Vector2 pos = (Vector2)pParams[0];
				MapItem.EType type = (MapItem.EType)pParams[1];
				int subtypeIndex = (int)pParams[2];
				item.Init(pos, type, subtypeIndex);
				break;

			case EPhotonMsg.MapItem_DoExplosionEffect:
				item.DoExplosionEffect(true);
				break;

			//case EPhotonMsg.MapItem_ReturnToPool:
			//    item.ReturnToPool();
			//    break;

			default:
				OnMsgUnhandled(pReceivedMsg);
				break;
		}
	}