Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "GameFramework/Actor.h"
- #include "BlockSpawner.generated.h"
- UCLASS()
- class DINORAMPAGE_API ABlockSpawner : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- ABlockSpawner();
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- // Called every frame
- virtual void Tick( float DeltaSeconds ) override;
- UWorld* World;
- FVector spawnLoc;
- FRotator spawnRot;
- int count = 0;
- //refernce the 3 blocks
- UPROPERTY(EditAnywhere, Category = "Spawning")
- TSubclassOf<class AActor> pyramidBlocks;
- UPROPERTY(EditAnywhere, Category = "Spawning")
- TSubclassOf<class AActor> singleBlock;
- UPROPERTY(EditAnywhere, Category = "Spawning")
- TSubclassOf<class AActor> upBridge;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement