Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/houraiteahouse-core.git

README Markdown

Copy this to your project's README.md

Style
Preview
pkglnk installs badge
## Installation

Add **Hourai Teahouse Core Libraries** to your Unity project via Package Manager:

1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/houraiteahouse-core.git
```

[![pkglnk](https://www.pkglnk.dev/badge/houraiteahouse-core.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/houraiteahouse-core)

Dependencies (1)

Used By (4)

README

Hourai Teahouse Core Libraries for Unity

A core utilities library underpinning most Hourai Teahouse projects in Unity 3D.

Standard Libraries

Unity does not include some key items for System.* binaries. This package includes the following:

Mediator

An event bus for subscribing to and publishing events.

// Events are just data objects.
public class LogEvent {
  public string Message;
}

// Creating a Mediator.
Mediator mediator = new Mediator();

// Accessing the global event bus.
Mediator globalMediator = Mediator.Global;

// Subscribing to events.
Mediator.Global.Subscribe<LogEvent>(log => Debug.Log(log.Message));

// Publishing Events.
Mediator.Global.Publish(new LogEvent { Message = "Hello World!" });

// Unsubscribing from events.
Mediator.Global.Unsubscribe(...);

Comments

No comments yet. Be the first!