public void Clear(LinesManager lm) { for (int j = 0; j < numLines; j++) { lm.ClearLine(index + j); } }
public void SetWidths(float width, LinesManager lm) { for (int j = 0; j < numLines; j++) { lm.SetWidth(index + j, width); } }
public void Initialize(GameObject prefab, LinesManager lm, float width) { for (int i = 0; i < numLines; ++i) { var go2 = Instantiate(prefab); lm.AddLine(col, go2.GetComponent <LineRenderer>(), width); } }
// Start is called before the first frame update void Start() { m_linesManager = GetComponent <LinesManager>(); // we required this component, get reference to it m_linesManager.AddLineGroup(Color.cyan, 1, lineRendPrefab, lineWidth); m_linesManager.AddLineGroup(Color.yellow, example1numlines, lineRendPrefab, lineWidth, true); m_linesManager.AddLineGroup(Color.red, example2numlines, lineRendPrefab, lineWidth, true); slider.value = lineWidth; }
// Start is called before the first frame update void Start() { isErasing = false; isFilling = false; isLines = false; fillButton = GameObject.Find("FillButton"); eraseButton = GameObject.Find("EraserButton"); lineButton = GameObject.Find("CreateButton"); linesManager = GetComponent <LinesManager>(); }
static void Project1() { LinesManager lm = new LinesManager("..\\..\\resources\\fichier.log"); lm.ProcessFileAndStore(); List <ResultBus> l = lm.Lines.GetEnregistrementsByLine(4); foreach (var traget in l) { Console.WriteLine(traget); Console.WriteLine("==============================================="); } Console.ReadLine(); }
void Awake() { screenSize.x = Screen.width; screenSize.y = Screen.height; //Debug.Log("screensize "+screenSize); //Debug.Log("Screensize transformé " + Camera.main.ScreenToWorldPoint(screenSize)); /*roof = 0.67f * Camera.main.ScreenToWorldPoint(screenSize).y; * floor = -roof;*/ rightWall = Camera.main.ScreenToWorldPoint(screenSize).x; leftWall = -rightWall; playerDefaultX = PlayerRestingPosition; //QualitySettings.vSyncCount = 0; Application.targetFrameRate = 30; if (linesHolder == null) { linesHolder = transform.GetComponentInChildren <LinesManager>(); } }
public DrawableGridControl() { InitializeComponent(); _linesManager = new LinesManager(MainGrid, GridSize); }