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(); }
protected override void Setup() { formationType = InputControl.Formation.Mob; circle = transform.Find("Circle").GetComponent <DrawCircle>(); circle.Init(); }