Page 358 - MDP2022-3
P. 358

2.  사용  도구



            Unity
                    Unity–  게임  개발을  위한  기본툴

                    C#  –  SUnity에서  지원하는  프로그래밍  언어
                    Bolt  –  비쥬얼  스크리팅을  지원하는  라이브러리






            제  3-1


            using  System.Collections;
            using  System.Collections.Generic;
            using  UnityEngine;
            public  class  Player  :  MonoBehaviour
            {

                    Animator  anim;
                    SpriteRenderer  spriteRenderer;

                    public  bool  isTouchTop;

                    public  bool  isTouchBottom;
                    public  bool  isTouchLeft;
                    public  bool  isTouchRight;


                    public  GameObject  bulletObjA;
                    public  GameObject  bulletObjB;

                    public  GameManager  GameManager;
                    public  GameObject  BoomEffect;
                    public  ObjectManager  objectManager;
                    public  GameObject  Enemy;                              //변수선언

                    public  GameObject[]  follower;




                    public  float  speed;
                    public  float  maxshortDelay;
                    public  float  curshortDelay;

                    public  int  power;

                    public  int  life;
                    public  int  score=0;

                    public  int  boom;
   353   354   355   356   357   358   359   360   361   362   363