// Use this for initialization void Start() { UniqueId = EntityIdDistributor.GetUniqueId(); rb = GetComponent <Rigidbody2D>(); if (spriteManager == null && UseSpriteManager) { spriteManager = GetComponent <SpriteManagerBase>(); } }
// Start is called before the first frame update void Start() { kfc = GetComponent <KeyframerController>(); UniqueId = EntityIdDistributor.GetUniqueId(); rb = GetComponent <Rigidbody2D>(); if (spriteManager == null && UseSpriteManager) { spriteManager = GetComponent <SpriteManagerBase>(); } }