Esempio n. 1
0
    public static SgtBeltGroup Create(SgtBelt belt)
    {
        var group = SgtComponentPool<SgtBeltGroup>.Pop("Group", belt.transform);

        group.Belt = belt;

        return group;
    }
    public static SgtBeltGroup Create(SgtBelt belt)
    {
        var group = SgtComponentPool <SgtBeltGroup> .Pop("Group", belt.gameObject.layer, belt.transform);

        group.Belt = belt;

        return(group);
    }
Esempio n. 3
0
    protected virtual void Start()
    {
        if (startCalled == false)
        {
            startCalled = true;

            if (Belt == null)
            {
                Belt = GetComponent <SgtBelt>();
            }

            CheckUpdateCalls();
        }
    }