示例#1
0
    public static void AddToObject(GameObject where, float radius, float lineWidth, Color color)
    {
        DrawCircle drawCircle = where.AddComponent <DrawCircle>();

        drawCircle.radius    = radius;
        drawCircle.lineWidth = lineWidth;
        drawCircle.color     = color;
        drawCircle.Init();
    }
示例#2
0
 protected override void Setup()
 {
     formationType = InputControl.Formation.Mob;
     circle        = transform.Find("Circle").GetComponent <DrawCircle>();
     circle.Init();
 }