# @umm/singleton_monobehaviour

> Provide behaviour to MonoBehaviour act as Singleton.

Latest version **1.0.4** (published 2017-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @umm/singleton_monobehaviour
pnpm add @umm/singleton_monobehaviour
yarn add @umm/singleton_monobehaviour
bun add @umm/singleton_monobehaviour
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-09-11 |
| First published | 2017-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Tetsuya Mori |
| Maintainers | takyama, risacankidsstar, mkaya, hanage, fakestarbaby, monry |

## Links

- npm: https://www.npmjs.com/package/@umm/singleton_monobehaviour
- Repository: https://github.com/umm-projects/singleton_monobehaviour
- Issues: https://github.com/umm-projects/singleton_monobehaviour/issues
- npm.io page: https://npm.io/package/@umm/singleton_monobehaviour

## Dependencies (5)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [glob](https://npm.io/package/glob.md) ^7.1.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [rimraf](https://npm.io/package/rimraf.md) ^2.6.1
- [@umm/permanent](https://npm.io/package/@umm/permanent.md) ^1.0.6

## Recent versions

- 1.0.4 (latest) — 2017-09-11
- 1.0.2 — 2017-08-29
- 1.0.1 — 2017-08-11
- 1.0.0 — 2017-08-02
- 0.1.1 — 2017-08-01
- 0.1.0 — 2017-08-01

## README

# What?

* 任意の MonoBehaviour に Singleton にアクセス出来るフィールドを提供します

# Why?

* シーンを跨いでアクセスしたりするコンポーネントが少なからず存在していたので実装しました

# Install

```shell
$ npm install github:umm-projects/singleton_monobehaviour.git
```

# Usage

```csharp
public class Hoge : SingletonMonoBehaviour<Hoge> {

    public string Fuga() {
        return "Fuga!!!";
    }

}

public class Fuga {

    public void Piyo() {
        Debug.Log(Hoge.Instance.Fuga());
    }

}
```

# License

Copyright (c) 2017 Tetsuya Mori

Released under the MIT license, see [LICENSE.txt](LICENSE.txt)

---
_Source: https://npm.io/package/@umm/singleton_monobehaviour · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
