Exemplo n.º 1
0
            public override void Update(float dt)
            {
                base.Update(dt);

                if (count < 5)
                {
                    sinceLast += dt;

                    if (sinceLast >= 1f - Self.Phase * 0.25f)
                    {
                        sinceLast = 0;
                        count++;

                        var bee = BeeHive.GenerateBee();
                        Self.Area.Add(bee);
                        bee.Center = Self.Center;
                        Self.GetComponent <MobAnimationComponent>().Animate();
                    }

                    T = 0;
                }

                if (T >= 1)
                {
                    Become <IdleState>();
                }
            }