Beispiel #1
0
        public void OnEndDrag(PointerEventData eventData)
        {
            Vector3 localPos = myCamera.ScreenToWorldPoint(Input.mousePosition);

            localPos.z = -1;

            localObject.transform.position = localPos;


            //PlaceHolder.gameObject.SetActive(false);

            localObject = LevelCreatorManager.Instance.CreateBlank(myObjType, true);
            localObject.gameObject.SetActive(false);
        }
Beispiel #2
0
        // Use this for initialization
        void Start()
        {
            //PlaceHolder = new GameObject();
            //SpriteRenderer localSR = PlaceHolder.AddComponent<SpriteRenderer>();
            //
            //localSR.sprite = ImageHolder;
            //PlaceHolder.gameObject.SetActive(false);



            localObject = LevelCreatorManager.Instance.CreateBlank(myObjType, true);

            myCamera = Camera.main;
        }