From 48c5ac0b059dc006547b045829cf38a652468da2 Mon Sep 17 00:00:00 2001 From: hyunwoo Date: Sat, 16 Sep 2023 18:45:09 +0900 Subject: [PATCH] Update readme.md code block language changes --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3271515..ca7bf15 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ I made two types of singleton that has DontDestroyOnLoad or not. **- UnitySingleton** - Singleton with DontDestroyOnLoad. - Basic singleton script. -```c# +```cs public class YourClass : UnitySingleton { //your class codes @@ -25,7 +25,7 @@ public class YourClass : UnitySingleton **- UnitySingletonOnce** - Singleton without DontDestroyOnLoad - This script and object will be removed when scene has changed. -```c# +```cs public class YourClass : UnitySingletonOnce { //your class codes @@ -44,7 +44,7 @@ EventBus class is using 'Singleton', so you can access by Instance. - You can send to the listener with class data. This is a sample event class. -```c# +```cs public class MyEvent : EventBase { public int _value1; @@ -55,7 +55,7 @@ public class MyEvent : EventBase This is a sample listener script. You can Subscribe, Unsubscribe events and define functions when your event published. -```c# +```cs public class Listener : MonoBehavior { private void OnEnable() @@ -77,7 +77,7 @@ public class Listener : MonoBehavior **- Publish(EventBase eventType)** This is how you can publish with data. You can send any data sealed with class. -```c# +```cs public class Publisher : MonoBehavior { private void OnCommand()