Example #1
0
 public GameObject SpawnTarget()
 {
     currentTarget = (GameObject)Instantiate(floatingTargetPrefab, this.transform.position, new Quaternion());
     currentTarget.transform.parent = this.transform;
     ChooseRandomPosition(currentTarget);
     if (LRController != null)
     {
         LRController.SetCurrentTargetPos(currentTarget);
         LRController.EnableLine();
     }
     return(currentTarget);
 }
    public GameObject SpawnMoveCubeCanvas()
    {
        GameObject newTarget = (GameObject)Instantiate(moveCubeCanvasPrefab, this.transform.position, new Quaternion());

        newTarget.transform.parent = this.transform;
        ChooseRandomPosition(newTarget);
        if (LRController != null)
        {
            LRController.SetCurrentTargetPos(newTarget);
            LRController.EnableLine();
        }
        return(newTarget);
    }