123456789101112131415161718192021222324252627282930 |
- using UnityEngine;
- using System.Collections;
- public class TestStarsIndicator : MonoBehaviour
- {
- void OnEnable()
- {
- DebugViewManager.OnDebugView += OnDebugView;
- }
- void OnDisable()
- {
- DebugViewManager.OnDebugView -= OnDebugView;
- }
- void OnDebugView()
- {
- if (GUILayout.Button("Add 1000"))
- {
- ScoreChangeData data = new ScoreChangeData(ScoreChangeData.Source.Enemy, 1000, Vector3.zero);
- NotificationCenter.Post(NotificationType.AddToScore, data);
- }
- if (GUILayout.Button("Reduce 1000"))
- {
- ScoreChangeData data = new ScoreChangeData(ScoreChangeData.Source.CondomDispenser, -1000, Vector3.zero);
- NotificationCenter.Post(NotificationType.AddToScore, data);
- }
- }
- }
|