예제 #1
0
        void OnPlayerDisconnected(BasePlayer player)
        {
            ESPPlayer component = player.GetComponent <ESPPlayer>();

            if (component != null)
            {
                component.OnDestroy();
            }
        }
예제 #2
0
        void AddEspPlayer(BasePlayer player)
        {
            ESPPlayer Component = player.GetComponent <ESPPlayer>();

            if (Component == null)
            {
                player.gameObject.AddComponent <ESPPlayer>();
            }
        }