|
- using System;
- using CIGEnums;
- using SUISS.Core;
- using UnityEngine;
-
- namespace SUISSEngine
- {
- public class PlingManager : MonoBehaviour
- {
- public Pling Show(PlingType plingType, Vector3 offset, Clip sound)
- {
- SingletonMonobehaviour<CIGAudioManager>.Instance.PlayClip(sound);
- return this.Show(plingType, offset);
- }
-
- public Pling Show(PlingType plingType, Vector3 offset)
- {
- Bounds bounds = this._renderer.bounds;
- Vector3 vector = bounds.center;
- vector.y = bounds.max.y;
- vector += offset;
- return SingletonMonobehaviour<OverlayManager>.Instance.CreatePling(SingletonMonobehaviour<PlingAssetCollection>.Instance.GetAsset(plingType), vector);
- }
-
- public const float PlingOffset = 50f;
-
- [SerializeField]
- private Renderer _renderer;
- }
- }
|