public void loadResources()
    {
        Vector3    river_pos = new Vector3(0, 0.5F, 0);
        GameObject river     = Instantiate(Resources.Load("Perfabs/River", typeof(GameObject)), river_pos, Quaternion.identity, null) as GameObject;

        river.name = "river";
        fromCoast  = new CoastCon("from");
        toCoast    = new CoastCon("to");
        boat       = new BoatCon();
        for (int i = 0; i < 3; i++)
        {
            ChaCon cha = new ChaCon("priest");
            cha.setName("priest" + i);
            cha.setPosition(fromCoast.getEmptyPosition());
            cha.getOnCoast(fromCoast);
            fromCoast.getOnCoast(cha);
            characters [i] = cha;
        }
        for (int i = 0; i < 3; i++)
        {
            ChaCon cha = new ChaCon("devil");
            cha.setName("devil" + i);
            cha.setPosition(fromCoast.getEmptyPosition());
            cha.getOnCoast(fromCoast);
            fromCoast.getOnCoast(cha);
            characters [i + 3] = cha;
        }
        userGUI.tips = AI.getInstance().tip(fromCoast, toCoast, boat);
    }
예제 #2
0
 public void loadCharacter()
 {
     for (int i = 0; i < 3; i++)
     {
         ChaCon cha = new ChaCon("priest");
         cha.setName("priest" + i);
         cha.setPosition(fromCoast.getEmptyPosition());
         cha.getOnCoast(fromCoast);
         fromCoast.getOnCoast(cha);
         characters [i] = cha;
     }
     for (int i = 0; i < 3; i++)
     {
         ChaCon cha = new ChaCon("devil");
         cha.setName("devil" + i);
         cha.setPosition(fromCoast.getEmptyPosition());
         cha.getOnCoast(fromCoast);
         fromCoast.getOnCoast(cha);
         characters [i + 3] = cha;
     }
 }