Created
May 14, 2018 22:21
-
-
Save MonteverdiPL/e4fe112feaa294c3cb2e0dca12cbce41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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