forked from YutaTachibana0310/SankouGoudou2019Summer
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BossDamageable.cpp
38 lines (32 loc) · 843 Bytes
/
BossDamageable.cpp
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
36
37
38
//=====================================
//
//ボスダメージエイブル処理[BossDamageable.cpp]
//Author:GP12A332 21 立花雄太
//
//=====================================
#include "BossDamageable.h"
/**************************************
マクロ定義
***************************************/
/**************************************
入場処理
***************************************/
void BossEnemyModel::BossDamageable::OnStart(BossEnemyModel* entity)
{
cntFrame = 0;
entity->SetCollider();
}
/**************************************
更新処理
***************************************/
int BossEnemyModel::BossDamageable::OnUpdate(BossEnemyModel* entity)
{
cntFrame++;
int result = BossEnemyModel::State::Damageable;
if (cntFrame == 360)
{
result = BossEnemyModel::State::Idle;
entity->colliderController->DeleteAll();
}
return result;
}