30 lines
504 B
C#
30 lines
504 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TOOL : MonoBehaviour
|
|
{
|
|
public List<GameObject> gameObjects;
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
|
|
[ContextMenu("ÖØÃüÃû")]
|
|
public void reName()
|
|
{
|
|
for (int i = 0; i < gameObjects.Count; i++)
|
|
{
|
|
gameObjects[i].name = (i+1).ToString();
|
|
}
|
|
}
|
|
}
|