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

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

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

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