27 lines
510 B
C#
27 lines
510 B
C#
|
|
using UnityEngine;
|
|||
|
|
namespace Gameplay.Area
|
|||
|
|
{
|
|||
|
|
public class ParentGroup
|
|||
|
|
{
|
|||
|
|
public Transform parentRoadLine;
|
|||
|
|
|
|||
|
|
public ParentGroup()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Init()
|
|||
|
|
{
|
|||
|
|
{
|
|||
|
|
var newObj = new GameObject("[RoadLine]");
|
|||
|
|
parentRoadLine = newObj.transform;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Dispose()
|
|||
|
|
{
|
|||
|
|
// 这些obj都不需要销毁, 会在场景切换时自动销毁
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|