コード例 #1
0
    public bool ChangeFood(SpawnCode code, GameObject _parents, GameObject _child)
    {
        //언락 여부 체크
        if (!spawn.GetIsUnlocked(code))
        {
            return(false);
        }

        //음식 생성 & 할당
        string what = (code.ToString().Substring(0, 1));

        switch (what)
        {
        case "F": spawn.GetFood(code, _child); break;
        }

        //음식 효과 적용
        _parents.GetComponent <PlayerStatus>().Init_Food();

        return(true);
    }