コード例 #1
0
        /// <summary>
        /// Subscribe TouchPad events to be called appropriately.
        /// </summary>
        void Start()
        {
            objManager = GameObject.Find("ObjectInteractionManager").GetComponent <ASL.Manipulation.Objects.ObjectInteractionManager>();

            TouchpadPressed += OnTouchpadPressedHandler;
            //objManager = gameObject.GetComponent<ASL.Manipulation.Objects.CreateObject>();
        }
コード例 #2
0
        public void Awake()
        {
            objManager = GameObject.Find("ObjectInteractionManager").GetComponent <ASL.Manipulation.Objects.ObjectInteractionManager>();
            gameObject.AddComponent <TapBehavior>();
            gameObject.AddComponent <PinchBehavior>();

            // Remove the following AddComponent, separate general PUN creation/synchronization behavior in a different file, and then make sure that objectinteractionmanager script attaches it automatically
            //gameObject.AddComponent<ASL.Manipulation.Objects.CreateObject>();
        }
コード例 #3
0
 public void Awake()
 {
     objManager     = gameObject.GetComponent <ASL.Manipulation.Objects.ObjectInteractionManager>();
     selectBehavior = gameObject.GetComponent <SelectObject>();
 }