コード例 #1
0
    public void StartBeerPongMiniGame()
    {
        ioController.DisableClicking();
        ioController.DisableScrolling();
        beerPongInstance = GameObject.Instantiate(Resources.Load("Prefabs/BeerPongInstance") as GameObject);
        var newPosition = cameraController.GetCameraPosition();

        newPosition.y += 1.0f;
        newPosition.z  = 0.0f;
        beerPongInstance.transform.position = newPosition;
        cameraController.SetOrthographicSize(5.5f);
    }
コード例 #2
0
ファイル: PersonInfo.cs プロジェクト: kryzodoze/PartyHero
 int OpenSnapApp(bool success)
 {
     if (success)
     {
         var snapApp = GameObject.Instantiate(Resources.Load("Prefabs/SnapApp") as GameObject);
         snapApp.transform.position = new Vector3(
             transform.position.x + 1.0f, transform.position.y + 0.4f, -5.0f);
         cameraController.PanToLocation(transform.position);
         cameraController.SetOrthographicSize(5.0f);
         ioController.DisableClicking();
         ioController.DisableScrolling();
     }
     return(0);
 }
コード例 #3
0
 public void RevertToNormal()
 {
     clickTimer = defaultClickBuffer;
     EnableScrolling();
     cameraController.SetOrthographicSize(6.0f);
 }