Skip to content

Instantly share code, notes, and snippets.

@MonteverdiPL
Created May 14, 2018 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MonteverdiPL/e4fe112feaa294c3cb2e0dca12cbce41 to your computer and use it in GitHub Desktop.
Save MonteverdiPL/e4fe112feaa294c3cb2e0dca12cbce41 to your computer and use it in GitHub Desktop.
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/TriggerVolume.h"
#include "Components/ActorComponent.h"
#include "PierwszeDrzwi.generated.h"
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class ESCAPETHEROOM_GIN7D_API UPierwszeDrzwi : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UPierwszeDrzwi();
protected:
// Called when the game starts
virtual void BeginPlay() override;
void OtwarcieDrzwi();
void ZamkniecieDrzwi();
public:
// Called every frame
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
UPROPERTY(EditAnywhere)
float KatOtwarcia = -90.0f;
UPROPERTY(EditAnywhere)
float KatZamkniecia = 0.0f;
UPROPERTY(EditAnywhere)
ATriggerVolume* TriggerWHolu;
UPROPERTY(EditAnywhere)
AActor* AktorOtwierajacy;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment