示例#1
0
    public DnPseedAction ApplyActionToObj(GameObject obj, Vector3 target, float speed)
    {
        DnPseedAction tmpAction = obj.AddComponent <DnPseedAction>();

        tmpAction.setAction(target, speed);
        DNPGameSceneController.GetInstance().state = State.Moving;
        return(tmpAction);
    }
示例#2
0
    public void OnActionCompleted(DnPseedAction action)
    {
        DNPGameSceneController theGame = DNPGameSceneController.GetInstance();

        theGame.state = State.Idle;
        theGame.getGenGameObject().setPositions();
        Destroy(this);
    }
示例#3
0
    void Start()
    {
        DNPGameSceneController theGame = DNPGameSceneController.GetInstance();

        gameName = "Priests and Devils";
        gameRule = "Priests and Devils is a puzzle game in which you will help the Priests and Devils to cross the river within the time limit. There are 3 priests and 3 devils at one side of the river. They all want to get to the other side of this river, but there is only one boat and this boat can only carry two persons each time. And there must be one person steering the boat from one side to the other side. In the flash game, you can click on them to move them and click the go button to move the boat to the other direction. If the priests are out numbered by the devils on either side of the river, they get killed and the game is over. You can try it in many ways. Keep all priests alive! Good luck!             Sphere -- Priest    Cube -- Devil";
        theGame.setBaseGame(this);
    }
示例#4
0
    void Start()
    {
        DNPGameSceneController theGame = DNPGameSceneController.GetInstance();

        theGame.setBaseGame(this);
    }
示例#5
0
 // Use this for initialization
 void Start()
 {
     theGame = DNPGameSceneController.GetInstance();
     theGame.setGenGameObject(this);
     loadSrc();
 }
示例#6
0
 // Use this for initialization
 void Start()
 {
     theGame = DNPGameSceneController.GetInstance();
     action  = theGame as IUserActions;
 }