Skip to content

Instantly share code, notes, and snippets.

@insthync
Last active November 28, 2018 02:33
Show Gist options
  • Save insthync/570a2333d07053657cc363a34770351d to your computer and use it in GitHub Desktop.
Save insthync/570a2333d07053657cc363a34770351d to your computer and use it in GitHub Desktop.
Dev Extension Sample
using LiteNetLibManager;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MultiplayerARPG
{
public partial class PlayerCharacterEntity
{
[DevExtMethods("Start")]
protected void DevExtStartDemo()
{
Debug.Log("Just add functionality to start function to PlayerCharacterEntity when game object start");
}
[DevExtMethods("OnNetworkDestroy")]
protected void DevExtOnNetworkDestroyDemo(DestroyObjectReasons reasons)
{
Debug.Log("Just add functionality to start function to PlayerCharacterEntity when network destroy");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment