Ghost.cs
1.45 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Ghost : MonoBehaviour
{
public string name;
public int number;
public string description;
bool isActivated;
bool iscaptured;
public static int timeState;
public Sprite MainImage;
public Sprite subImage;
// 씬당 귀신이 하나일거라고 가정하여 변수 돌려쓰기를 위해 static으로 선언했습니다
public Sprite getMImage() {
return MainImage;
}
public Sprite getSubImage() {
return subImage;
}
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;
}
public void setMSprite(Sprite msp) {
MainImage = msp;
}
public void setSSprite(Sprite ssp) {
subImage = ssp;
}
public void setDescription(string des) {
description = des;
}
}