Ghost.cs 1.02 KB
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;
    }
    
    
}