Posts

Unity Platformer Tutorial

  https://www.youtube.com/watch?v=w9fzkPVzogE&list=RDCMUC5c-DuzPdH9iaWYdI0v0uzw&index=27

Tạo một animation bắn súng zombie 2D với sự thống nhất

https://www.youtube.com/watch?v=Jd0y_qsGZrE&t=10842s  

[2D Shader Graph] How to make Simple 2D Glow with Outline in Unity

https://www.youtube.com/watch?v=eSHM45ogT7g  

Unity 5 - Game Effects VFX - Cartoon Boom Explosion

https://www.youtube.com/watch?v=hlGZsUkAmsc  

[Tutorial] Mad Doctor Shooter

 https://www.youtube.com/watch?v=Wr-rKmRtP2I&t=13s

Object Pooling - Các bước cần làm

Image
B1 . Tạo file ObjectPooler có nhiêm vụ quản lý tất cả các object pool bạn muốn tạo trong project. Dưới đây là đoạn code của file script : using UnityEngine; using System.Collections; using System.Collections.Generic; [System.Serializable] public class ObjectPoolItem {     public GameObject objectToPool;     public int amountToPool;     public bool shouldExpand; } public class ObjectPooler : MonoBehaviour {     public static ObjectPooler SharedInstance;     public List<ObjectPoolItem> itemsToPool;     public List<GameObject> pooledObjects;     void Awake()     {         SharedInstance = this;     }     // Use this for initialization     void Start()     {         pooledObjects = new List<GameObject>();   ...