Files
old-game/Assets/GameStart.cs
2020-01-11 11:08:22 +01:00

24 lines
557 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameStart : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
GameObject originalPlayer = GameObject.Find("man-cowboy_Rig");
Vector3 opp = originalPlayer.transform.position;
for(int i=0;i<10;i++)
{
GameObject player = Instantiate(originalPlayer);
player.transform.position = player.transform.position + new Vector3((i+1) * 0.1f, 0, 0 );
}
}
}