示例#1
0
    public override void OnTriggerClicked(ClickedEventArgs e)
    {
        base.OnTriggerClicked(e);

        if (currFocus != null)
        {
            Interactive l = currFocus.GetComponent <Interactive>();

            if (l != null)
            {
                if (l.type == Interactive.InteractiveTypes.Grab)
                {
                    l.Grab(this.transform);
                }

                if (l.type == Interactive.InteractiveTypes.Marker)
                {
                    AnotationManager canvs = currFocus.GetComponent <AnotationManager>();
                }

                if (l.type == Interactive.InteractiveTypes.ObjButton)
                {
                    l.ObjectClick();
                }

                if (l.type == Interactive.InteractiveTypes.Canvas)
                {
                    l.ShowCanvas();
                }
            }
        }
    }
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         Object.DontDestroyOnLoad(this.gameObject);
     }
     else if (instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Object.DontDestroyOnLoad(this.gameObject);
     }
 }
 public void AdcthisNote()
 {
     AnotationManager.AddNote(new Anotation(id, sp, txt));
     PontuationCounter.AddScore(1000);
 }
 void Awake()
 {
     AnBook = GameObject.Find("AnotationBook").GetComponent <AnotationManager>();
     a      = ao.GetComponent <AudioInterface>();
 }