예제 #1
0
    // the first scripts
    void Awake()
    {
        left_devil_count   = 0;
        left_priest_count  = 0;
        right_priest_count = 3;
        right_devil_count  = 3;
        game_over          = false;
        int i;

        for (i = 0; i < 6; i++)
        {
            right_position_empty.Add(false);
            left_position_empty.Add(true);
            //right_position_empty[i] = false;
            //left_position_empty[i] = true;
        }
        SSDirector director = SSDirector.getInstance();

        director.setFPS(60);
        director.currentSceneController = this;
        director.currentSceneController.LoadResources();
        boat_move_to_right = false;
        boat_move_to_left  = false;
        win = false;
        Debug.Log("left_priest:" + left_priest_count.ToString());
        Debug.Log("left_devil:" + left_devil_count.ToString());
        Debug.Log("right_priest:" + right_priest_count.ToString());
        Debug.Log("right_devil:" + right_devil_count.ToString());

        Devilaction  = SSDirector.getInstance().currentSceneController as devilAction;
        Priestaction = SSDirector.getInstance().currentSceneController as priestAction;
        Boataction   = SSDirector.getInstance().currentSceneController as boatAction;
        landing      = false;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     action = SSDirector.getInstance().currentSceneController as devilAction;
 }