Ghost.cs
1.02 KB
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
39
40
41
42
43
44
45
46
47
48
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ghost
{
string name;
int number;
string description;
bool isActivated;
bool iscaptured;
public static int timeState;
// 씬당 귀신이 하나일거라고 가정하여 변수 돌려쓰기를 위해 static으로 선언했습니다
public string getName() {
return name;
}
public int getNumber() {
return number;
}
public string getDescription() {
return description;
}
public bool getActivatedStatus() {
return isActivated;
}
public bool getCaptureStatus() {
return iscaptured;
}
public void setTime(int count) {
timeState = count;
}
public void setName(string _name) {
name = _name;
}
public void setNumber(int _number) {
number = _number;
}
public void setActivatedStatus(bool value) {
isActivated = value;
}
public void setCapturedStatus(bool value) {
iscaptured = value;
}
}