Page 367 - MDP2022-3
P. 367

isTouchTop  =  false;
                                                    break;
                                            case  "Bottom":
                                                    isTouchBottom  =  false;

                                                    break;
                                            case  "Right":
                                                    isTouchRight  =  false;
                                                    break;
                                            case  "Left":

                                                    isTouchLeft  =  false;
                                                    break;


                                    }
                            }
                    }


            }
            using  System.Collections;
            using  System.Collections.Generic;

            using  UnityEngine;




            public  class  Enemy  :  MonoBehaviour                          //적  스크립트
            {
                    public  float  maxshortDelay;

                    public  float  curshortDelay;
                    public  float  speed;


                    public  int  health;

                    public  int  enemyScore;                                //변수
                    public  int  patternIndex=0;
                    public  int  currentPatternCount;
                    public  int[]  maxPatternCount;
                    bool  first  =  true;



                    public  Sprite[]  sprites;
                    SpriteRenderer  spriteRenderer;


                    public  string  enemyName;



                    public  GameObject  bulletObjA;
   362   363   364   365   366   367   368   369   370   371   372