Ejemplo n.º 1
0
    /**<summary> Instantiate an object to touch point </summary>*/
    private void InstantiateObject(Vector3 position, bool ar)
    {
        Vector3 cameraPosition = cam.transform.position;

        cameraPosition.y = position.y;
        Quaternion rotation = Quaternion.LookRotation(cameraPosition - position, Vector3.up);

#pragma warning disable 4014
        worldController.AddItem(new ItemData(null, "Andy", "Test Android", "Android Andy static test Item", position, rotation, 0, true, name, 0), ar, false);
#pragma warning restore 4014
    }