Example #1
0
 public void SetRallyPoint(Vector3 position)
 {
     rallyPoint = position;
     if (player.isLocalPlayer && hasSpawnPoint)
     {
         rallyPtObj.transform.position = rallyPoint;
         LineRenderer line = rallyPtObj.GetComponentInChildren <LineRenderer>();
         line.SetPosition(0, new Vector3(transform.position.x, 5f, transform.position.z));
         line.SetPosition(1, position);
     }
 }
Example #2
0
 public void SetRallyPoint(Vector3 position)
 {
     rallyPoint = position;
     if (player && player.isHuman)
     {
         RallyPoint rallyPt = player.GetComponentInChildren <RallyPoint>();
         if (rallyPt)
         {
             rallyPt.transform.position = rallyPoint;
             LineRenderer line = rallyPt.GetComponentInChildren <LineRenderer>();
             line.SetPosition(0, new Vector3(transform.position.x, 5f, transform.position.z));
             line.SetPosition(1, position);
         }
     }
 }