public void Dispose() { SystemFacade.Level.Level.RemoveView(name, index); _targetView = null; gameObject.SetActive(false); SystemFacade.Pool.StoreGameView(this); }
public void Start(SpriteView inView, float inDuration, Color inColor) { // -------------------------------------------------------------------------------- // Setup variables // -------------------------------------------------------------------------------- gameObject.SetActive(true); _duration = inDuration; _targetView = inView; SetSprite(_targetView.SpriteRenderer.sprite); SetOrderInLayerUnder(inView); Color = inColor; transform.localScale = _targetView.transform.localScale; SystemFacade.Level.Level.AddView(this, _targetView.transform.localPosition); }