Example #1
0
        protected override void OnCreate()
        {
            tag |= ActorTypeTag.Content;

            renderer = AddComponent<RendererComponent>();
            collider = AddComponent<ColliderComponent>();

            playerMovement = AddComponent<PlayerMovementComponent>();
            playerMovement.movementSpeed = 8;

            base.OnCreate();
        }
Example #2
0
 protected override void OnCreate()
 {
     renderer = AddComponent<RendererComponent>();
     base.OnCreate();
 }