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