Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     UniqueId = EntityIdDistributor.GetUniqueId();
     rb       = GetComponent <Rigidbody2D>();
     if (spriteManager == null && UseSpriteManager)
     {
         spriteManager = GetComponent <SpriteManagerBase>();
     }
 }
Ejemplo n.º 2
0
    // 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>();
        }
    }