본문 바로가기

c#/과제8

도끼 던져서 맞추기 과제 - 미완성 버튼 누르면 도끼생성 후 돌면서 날아가고 몬스터 있는 곳까지 감 멈추는거 다시 설정하고 맞추면 도끼 사라지는거 해야함!! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 using System.Collections; using System.Collections.Generic; using UnityEngine; using System; using UnityEngine.UI; public class App : MonoBehaviour { public Hero hero; public Axe axe; public Button btn; private GameObject axeGo; // Start is called before the first fr.. 2020. 5. 13.
2020.05.01 2048 이차열 배열 사용해서 만들기 미완성 움직이면 인접한 숫자 합쳐지고 랜덤으로 숫자 생기는 것 까지 완성 칸 다 채워지면 게임 끝나는거 설정하면 됨 수정 중 2020. 5. 1.
2020.05.01 책에서 대리자 읽어보고 인터넷으로 대리자 검색해서 알아두기!! 무명메서드 중요함 2020. 5. 1.
과제 1. 개체 지향 프로그래밍의 특징 https://docs.microsoft.com/ko-kr/dotnet/csharp/programming-guide/classes-and-structs/inheritance 2. 개체 지향 프로그래밍 5대원칙 3. 다형성? https://docs.microsoft.com/ko-kr/dotnet/csharp/programming-guide/classes-and-structs/polymorphism 2020. 4. 22.
2020.04.10 과제 Character Class 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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 12.. 2020. 4. 12.
2020.04.08 과제 enum 캐릭터 생성 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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threadi.. 2020. 4. 8.
2020.04.03 과제 * 모양 for문 이용 규칙성 출력 1. 1. 실행결과 2. 2. 실행결과 3. 3.실행결과 4. 4.. 실행결과 2020. 4. 5.
2020.04.02 문자열 연결 연산자 "아이언맨" 과제 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 string heroName = "아이언맨"; int heroHP = 10; string monsterName = "타노스"; int monsterDamage = 3; //타노스가 아이언맨을 공격 했습니다 //아이언맨의 체력은 7입니다 Console.WriteLine( monsterName + "가 " + heroName + "을 공격 했습니다"); Console.WriteLine(heroName + "의 체력은 " + (heroHP-monsterDamage) + "입니다"); //타노스가 아이언맨을 3만큼 공격 했습니다 //아이언맨의 체력은 (7/10)입니다 .. 2020. 4. 2.