Advertisement
Guest User

Untitled

a guest
Oct 7th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.64 KB | None | 0 0
  1. public GameObject GetFriendPosition()
  2.     {
  3.         if (friendCount < availableFriendPositions.Count-1)
  4.         {
  5.            
  6.             friendCount++;
  7.             positionObject = availableFriendPositions[friendCount-1];
  8.             // Debug.Log( "Friend Count = " + friendCount);
  9.             Debug.Log(positionObject.name);
  10.             diedFriendPositions.Add(positionObject);
  11.             dieFriendCount++;
  12.             availableFriendPositions.Remove(positionObject);
  13.            
  14.             return diedFriendPositions[dieFriendCount-1];
  15.            
  16.         }
  17.         else
  18.         {
  19.             return null;
  20.         }
  21.      
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement