/// <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>(); }
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>(); }
public void Awake() { objManager = gameObject.GetComponent <ASL.Manipulation.Objects.ObjectInteractionManager>(); selectBehavior = gameObject.GetComponent <SelectObject>(); }