void Start()
    {
        //Resourcesからモデルを拝借
        aoiModel       = (GameObject)Resources.Load("Model/Aoi");
        hikariModel    = (GameObject)Resources.Load("Model/Hikari");
        xionModel      = (GameObject)Resources.Load("Model/Xion");
        chloeModel     = (GameObject)Resources.Load("Model/Chloe");
        shiroganeModel = (GameObject)Resources.Load("Model/Shirogane");
        mariModel      = (GameObject)Resources.Load("Model/Mari");

        frame1        = GameObject.FindGameObjectWithTag("frame1");
        frame2        = GameObject.FindGameObjectWithTag("frame2");
        start         = GameObject.Find("StartImage").GetComponent <StartGameAnime>();
        gameData      = GameObject.Find("GameSystem").GetComponent <DataRetention>();
        sceneFlag1    = true;
        sceneFlag2    = true;
        controlFlag1P = true;
        controlFlag2P = true;
        stayFlag      = true;
        rect          = GetComponent <RectTransform>();
        menuFlag      = GameObject.Find("SelectSceneObj").GetComponent <MenuEvent>();
        enter         = GameObject.Find("SelectSceneObj").GetComponent <CancelScript>();
        controlFlag   = true;
        player_One    = GameObject.FindGameObjectWithTag("icon1");
        player_Two    = GameObject.FindGameObjectWithTag("icon2");
        // オフセット値をアイコンのサイズの半分で設定
        offset = new Vector2(rect.sizeDelta.x / 2f, rect.sizeDelta.y / 2f);

        if (controller > 0)
        {
            controllerName = Input.GetJoystickNames()[controller - 1];
        }

        pvcController = 0;
    }
 // Use this for initialization
 void Start()
 {
     if (this.GetComponent <AudioSource>() != null)
     {
         audio = this.GetComponent <AudioSource>();
     }
     scene = this.GetComponent <SceneManagement>();
     fade  = GameObject.Find("FadePanel").GetComponent <FadeScript>();
     if (SceneManager.GetActiveScene().name == "SelectScene")
     {
         menu  = GameObject.Find("SelectSceneObj").GetComponent <MenuEvent>();
         enter = GameObject.Find("SelectSceneObj").GetComponent <CancelScript>();
         //select = GameObject.Find("P1Image").GetComponent<CharacterSelect>();
         //select2 = GameObject.Find("P2Image").GetComponent<CharacterSelect>();
     }
     if (SceneManager.GetActiveScene().name == "PlayMenuScene")
     {
         datare = GameObject.Find("GameSystem").GetComponent <DataRetention>();
     }
     if (SceneManager.GetActiveScene().name == "PlayScene" || SceneManager.GetActiveScene().name == "PlayMenuScene")
     {
         sys = GameObject.Find("GameSystem").GetComponent <PlayMenuSystem>();
     }
     if (SceneManager.GetActiveScene().name == "PlayMenuScene")
     {
         sys = GameObject.Find("PlayMenuSystemObj").GetComponent <PlayMenuSystem>();
     }
     //Debug.Log("sys:" + sys);
     //Debug.Log("datare:" + datare);
     sceneFlagMenu = false;
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     audio         = GetComponent <AudioSource>();
     image         = GetComponent <Image>();
     selectPlayer1 = GameObject.Find("P1Image").GetComponent <CharacterSelect>();
     selectPlayer2 = GameObject.Find("P2Image").GetComponent <CharacterSelect>();
     enter         = GameObject.Find("SelectSceneObj").GetComponent <CancelScript>();
     speed         = 0;
     alpha         = 0;
     audio.clip    = clip;
     sound         = true;
 }
Exemple #4
0
    // Use this for initialization
    void Start()
    {
        enter = GameObject.Find("SelectSceneObj").GetComponent <CancelScript>();
        if (this.GetComponent <AudioSource>() != null)
        {
            audio = this.GetComponent <AudioSource>();
        }

        controllerName = Input.GetJoystickNames()[0];
        if (controllerName != "Arcade Stick (MadCatz FightStick Neo)")
        {
            controllerName = "";
        }
        menuFlag  = false;
        sceneFlag = false;
        sm        = GameObject.Find("SceneManager").GetComponent <SceneTransition>();
    }
        public object Any(CancelScript request)
        {
            var runner = LocalCache.GetScriptRunnerInfo(request.ScriptId);
            var result = new ScriptExecutionResult
            {
                Status = Cancel(runner)
                    ? ScriptStatus.Cancelled
                    : ScriptStatus.Unknown
            };

            ////cancellation token does not work in mono
            ////leave this alternative way when cancellation token will be implemented
            //if (sess.DomainWrapper != null && sess.DomainWrapper.GistHash == null)
            //{
            //    sess.DomainWrapper.Cancel();
            //    result.Status = sess.DomainWrapper.GetScriptStatus();
            //}

            return(new CancelScriptResponse
            {
                Result = result
            });
        }