10class ONEPIECE_API
ADoor : public AActor
18 virtual void BeginPlay()
override;
22 void OnDoorMessage(int32 InDoorIndex,
bool bInOpen, AActor* EventInstigator);
24 UFUNCTION(BlueprintCallable)
25 void UpdateDoor(
float InAlpha);
27 UFUNCTION(BlueprintNativeEvent)
29 virtual
void OpenDoor_Implementation();
31 UFUNCTION(BlueprintNativeEvent)
33 virtual
void CloseDoor_Implementation();
36 UPROPERTY(VisibleAnywhere)
37 TObjectPtr<USceneComponent> SceneRoot;
39 UPROPERTY(VisibleAnywhere)
40 TObjectPtr<UStaticMeshComponent> SM_Frame;
41 UPROPERTY(VisibleAnywhere)
42 TObjectPtr<UStaticMeshComponent> SM_Left;
43 UPROPERTY(VisibleAnywhere)
44 TObjectPtr<UStaticMeshComponent> SM_Right;
46 UPROPERTY(EditAnywhere, BlueprintReadWrite)
49 UPROPERTY(EditAnywhere, BlueprintReadWrite)
52 UPROPERTY(EditAnywhere, BlueprintReadWrite)
56 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Door")
57 bool bStartOpened = false;
59 UPROPERTY(EditAnywhere, BlueprintReadWrite)
60 FVector LeftOpen = FVector(-120,0,0);
61 UPROPERTY(EditAnywhere, BlueprintReadWrite)
62 FVector RightOpen = FVector(120,0,0);