Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     monsterDictionary = popupUI.GetComponent <MonsterDictionary>();
     popupUI.SetActive(false);
     alreadyPopup       = false;
     isCoroutinePlaying = false;
 }
Ejemplo n.º 2
0
    void Awake()
    {
        instance = this;

        monsterMap = new Dictionary <string, Monster>();

        string name;
        List <Monster.SAttribute> sAttribute = new List <Monster.SAttribute>();


        /////////////////////// None //////////////////////////////////////////
        sAttribute.Add(Monster.SAttribute.None);

        // 추종자
        name = "Cultist";
        //monsterMap.Add(name, new Monster(name, 1, 0, 1, 1, 0, -3, Monster.Type.Normal, Monster.Simbol.Moon, sAttribute));
        monsterMap.Add(name, new Monster(name, 1, 0, 1, 1, 0, -3, Monster.Type.Normal, Monster.Simbol.Moon, sAttribute));

        // 차원에서 휘청대는자
        name = "DimensionalShambler";
        //monsterMap.Add(name, new Monster(name, 1, -2, -2, 0, 1, -3, Monster.Type.Fly, Monster.Simbol.Square, sAttribute));
        monsterMap.Add(name, new Monster(name, 1, -2, -2, 0, 1, -3, Monster.Type.Normal, Monster.Simbol.Moon, sAttribute));

        // 미고
        name = "MiGo";
        //monsterMap.Add(name, new Monster(name, 1, -1, 0, 1, 2, -2, Monster.Type.Fly, Monster.Simbol.Circle, sAttribute));
        monsterMap.Add(name, new Monster(name, 1, -1, 0, 1, 2, -2, Monster.Type.Fast, Monster.Simbol.Moon, sAttribute));

        sAttribute.Clear();


        /////////////////////// PhysicalImmunity //////////////////////////////////////////
        sAttribute.Add(Monster.SAttribute.PhysicalImmunity);

        // 틴달로스의 개
        name = "HoundofTindalos";
        //monsterMap.Add(name, new Monster(name, 2, -2, -1, 3, 4, -1, Monster.Type.Fly, Monster.Simbol.Square, sAttribute));
        monsterMap.Add(name, new Monster(name, 2, -2, -1, 3, 4, -1, Monster.Type.Normal, Monster.Simbol.Moon, sAttribute));

        sAttribute.Clear();


        /////////////////////// Various //////////////////////////////////////////
        // 유령
        name = "Ghost";
        sAttribute.Add(Monster.SAttribute.PhysicalImmunity);
        sAttribute.Add(Monster.SAttribute.Undead);
        //monsterMap.Add(name, new Monster(name, 1, -2, -3, 2, 2, -3, Monster.Type.Fly, Monster.Simbol.Moon, sAttribute));
        monsterMap.Add(name, new Monster(name, 1, -2, -3, 2, 2, -3, Monster.Type.Fast, Monster.Simbol.Moon, sAttribute));
    }
Ejemplo n.º 3
0
    private void Start()
    {
        print("TEA");
        OriginalPosition = GameObject.FindObjectOfType <Player>().transform.position;
        Speed            = InitialSpeed;

        spriteRenderer = gameObject.GetComponent <SpriteRenderer>();

        monsterDict = new MonsterDictionary();

        InitialColor = Color.white;

        Recolor();
    }
Ejemplo n.º 4
0
 void Awake()
 {
     d = GameObject.FindGameObjectWithTag("Dict").GetComponent <MonsterDictionary>();
 }