Skip to content
Snippets Groups Projects
Select Git revision
  • 75f6304be0eb0dee2f5a881214c38d92f03db2c3
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

StartScreen.unity

Blame
  • DropHandling.cs 518 B
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.EventSystems;
    
    public class DropHandling : MonoBehaviour, IDropHandler 
    {
        GameObject current;
        public void OnDrop(PointerEventData eventData){
            Debug.Log(eventData.pointerDrag + "was dropped on "+ gameObject.name);
            Destroy(current);
            current = Instantiate(eventData.pointerDrag,Vector3.zero, Quaternion.identity);
            current.transform.SetParent(gameObject.transform, false);
        }
    
    }