Example #1
0
        public RocketController(RocketView RocketViewPrefab, Transform graphicElementsHolder)
        {
            _leaserTargetPosition = null;
            _isFired = false;

            _rocketView = MonoBehaviour.Instantiate(RocketViewPrefab);
            _rocketView.transform.parent        = graphicElementsHolder;
            _rocketView.transform.localScale    = new Vector3(1 / graphicElementsHolder.transform.localScale.x, 1 / graphicElementsHolder.transform.localScale.x, 1 / graphicElementsHolder.transform.localScale.x);
            _rocketView.transform.localPosition = new Vector3(0, 0, 0);
            _rocketView.transform.name          = "rocket";
            _rocketView.gameObject.SetActive(false);
        }
Example #2
0
 public RocketPresenter(RocketView view)
 {
     _view = view;
 }