프로그래밍 160

[08]Battery Collector_power추가, 아이템 획득시 power 증가시키기

11.Adding Power to the Game BatteryPickup.h 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Pickup.h" #include "BatteryPickup.generated.h" UCLASS() class BATTERYCOLLECTOR_API ABatteryPickup : public APickup { GENERATED_BODY() // Sets default values for this actor..

[06]Battery Collector _ spawn 결정(언제, 어디서, 무엇을)

Spawning Pickups(What, Where, When to Spawn) 06.Defining What to Spawn SpawnVolume.h 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "GameFramework/Actor.h" #include "SpawnVolume.generated.h" UCLASS() class BATTERYCOLLECTOR_API ASpawnVolume : public..

[06]Battery Collector_기초적인 아이템 물리(자유낙하) 적용

05.Extending the Pickup Class BatteryPickup.h 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 // Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "Pickup.h" #include "BatteryPickup.generated.h" UCLASS() class BATTERYCOLLECTOR_API ABatteryPickup : public APickup { GENERATED_BODY() // Sets default values for this actor's properties public: ABatteryP..