_root.SpawnReadyCards C# (CSharp) 메소드

SpawnReadyCards() 공개 정적인 메소드

public static SpawnReadyCards ( ) : void
리턴 void
    public static void SpawnReadyCards()
    {
        for (int x = 0; x < 4; x++)
        {
            int cabPos = LookUp.PlayerCabinetPosition(x);
            GameObject go = GameObject.CreatePrimitive(PrimitiveType.Quad);
            go.name = "ReadyPlayer " + x;
            go.transform.position = rcStartPos + Vector3.right * cabPos * rcStepLength;
            go.transform.localScale = rcSize;
            go.layer = LayerMask.NameToLayer("UI");
            ReadyLogic script = go.AddComponent<ReadyLogic>();
            script.SetPlayerNumber(x);
        }
    }