private void World_ObjectEnterScope(IGameObjectWithProto obj) { if (obj.GameObjectType == GameObjectType.Character) { var character = (ICharacter)obj; ComponentCharacterTracer.Init(character); } }
public static void Init(ICharacter character) { Instance = Client.Scene.CreateSceneObject(nameof(ComponentCharacterTracer)).AddComponent <ComponentCharacterTracer>(); Instance.character = character; }