예제 #1
0
파일: AICycle.cs 프로젝트: uchr/ld32
    public void CreateFactory()
    {
        factory = (UnitFactory)BuildingsManager.instance.CreateBuilding(0);
        var colliders = factory.GetComponentsInChildren <SphereCollider>();

        foreach (var c in colliders)
        {
            c.enabled = true;
        }
        factory.Init(1, factoryPosition);
    }