Exemplo n.º 1
0
 public void Dispose()
 {
     SystemFacade.Level.Level.RemoveView(name, index);
     _targetView = null;
     gameObject.SetActive(false);
     SystemFacade.Pool.StoreGameView(this);
 }
Exemplo n.º 2
0
        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);
        }