Advertisement
Guest User

TestGeomPawn.h

a guest
Feb 11th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.82 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "GameFramework/Pawn.h"
  6. #include "CustomMeshComponent.h"
  7. #include "TestGeomPawn.generated.h"
  8.  
  9. UCLASS()
  10. class QUICKSTART_API ATestGeomPawn : public APawn
  11. {
  12.     GENERATED_BODY()
  13.  
  14. public:
  15.     // Sets default values for this pawn's properties
  16.     ATestGeomPawn();
  17.  
  18.     // Called when the game starts or when spawned
  19.     virtual void BeginPlay() override;
  20.  
  21.     // Called every frame
  22.     virtual void Tick(float DeltaSeconds) override;
  23.  
  24.     // Called to bind functionality to input
  25.     virtual void SetupPlayerInputComponent(class UInputComponent* InputComponent) override;
  26.  
  27.     void RegenGeometry();
  28.  
  29.     UCustomMeshComponent *OurMesh;
  30.    
  31.     void StartGrowing() { bGrowing = true; }
  32.     void StopGrowing() { bGrowing = false; }
  33.     bool bGrowing;
  34.  
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement