Hello
How do I use Hello
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
349 | GameObject hellObject = new GameObject(MapObjectNames.HellObject); | 1 |
File name: GameScreen.cs
Copy
341 private void createDeadLine()
342 {
343 deadLine = new GameObject(MapObjectNames.DeadLine);
344 deadLine.transform.localPosition = new Vector3(120, -3.4f, 0);
345 BoxCollider2D deadLineCollider = deadLine.AddComponent
346 deadLineCollider.size = new Vector2(250, 0.5f);
347 deadLineCollider.isTrigger = true;
348
349 GameObject hellObject = new GameObject(MapObjectNames.HellObject);
350 hellObject.transform.localPosition = new Vector3(120, -6, 0);
351 BoxCollider2D hellCollider = hellObject.AddComponent
352 hellCollider.size = new Vector2(250, 0.5f);
353 }
Download file with original file name:Hello
Hello 112 lượt xem
Gõ tìm kiếm nhanh...