예제 #1
0
 // Use this for initialization
 void Start()
 {
     gameObject.transform.localScale = new Vector3(0.001f, 0.001f, 0.001f);
     pc   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
     sb   = GameObject.Find("SaveButton").GetComponent <SaveButton>();
     sctu = GameObject.Find("CoinShooter").GetComponent <SootingCoinsToUI>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     st  = this.GetComponentInParent <StationData>();
     pc  = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
     rig = gameObject.GetComponent <Rigidbody2D>();
     this.transform.localScale = new Vector3(0.001f, 0.85f, 1);
     rig.gravityScale          = 0;
 }
예제 #3
0
 void Awake()
 {
     _pauseCtrl = GetComponent <PauseCtrl>();
     foreach (var obj in gamePadOnlys)
     {
         obj.SetActive(false);
     }
     stageClearPanel.SetActive(false);
     gameOverPanel.SetActive(false);
 }
예제 #4
0
        public static void PoseLoadPatch(PauseRegistrationList __instance)
        {
            var traverse = Traverse.Create(__instance);
            var listPath = traverse.Field("listPath").GetValue <List <string> >();
            var select   = traverse.Field("select").GetValue <int>();

            foreach (var chara in Utils.GetSelectedCharacters().Where((chara) => chara != __instance.ociChar))
            {
                PauseCtrl.Load(chara, listPath[select]);
            }
        }
예제 #5
0
    // Use this for initialization
    void Start()
    {
        pc        = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
        up        = true;
        maxHeight = 0.5f;
        minHeight = 0.5f;
        a         = 0.03f;

        maxHeightPosition = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y + maxHeight, gameObject.transform.position.z);
        minHeightPosition = gameObject.transform.position;
    }
        public override void Pose_Load(MsgObject message)
        {
            var characters = GetSelectedCharacters();

            if (characters.Count > 0)
            {
                foreach (var chara in characters)
                {
                    PauseCtrl.Load(chara, message.path);
                }
            }
            else
            {
                Console.WriteLine("Select character to pose");
            }
        }
예제 #7
0
 public override void PoseData_Load(string path, POINT pos)
 {
     try
     {
         var characters = GetSelectedCharacters();
         if (characters.Count > 0)
         {
             foreach (var chara in characters)
             {
                 PauseCtrl.Load(chara, path);
             }
         }
     }
     catch (Exception ex)
     {
         DragAndDrop.Logger.Log(LogLevel.Error, ex);
     }
 }
예제 #8
0
    // Use this for initialization
    void Start()
    {
        L          = false;
        R          = false;
        PresKey    = false;
        leftboost  = 0.0f;
        rightboost = 0.0f;
        upboost    = 0.0f;
        gravity    = 4f * Rt; //0.07
        rot        = 0.0f;
        check      = 0.0f;
        cd         = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>();
        cl         = GameObject.FindGameObjectWithTag("legcol").GetComponent <ColforLand>();
        cdp        = GameObject.FindGameObjectWithTag("stationpoint").GetComponent <CalDistancePlayer>();
        hl         = GameObject.FindGameObjectWithTag("effect").GetComponent <Heallight>();
        pc         = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
        pb         = GameObject.Find("PauseButton").GetComponent <PauseButton>();


        StartTime = Time.realtimeSinceStartup;
    }
예제 #9
0
        private static bool PauseRegistrationList_InitList_Prefix(PauseRegistrationList __instance)
        {
            for (int i = 0; i < __instance.transformRoot.childCount; i++)
            {
                UnityEngine.Object.Destroy(__instance.transformRoot.GetChild(i).gameObject);
            }
            __instance.transformRoot.DetachChildren();
            __instance.select = -1;
            __instance.buttonLoad.interactable   = false;
            __instance.buttonDelete.interactable = false;
            List <string> files = new List <string>();

            files.AddRange(Directory.GetFiles(UserData.Create(GetFolder()), "*.dat").ToList());
            files.AddRange(Directory.GetFiles(UserData.Create(GetFolder()), "*.png"));
            if (ConfigOrderBy.Value == OrderBy.Filename)
            {
                files.Sort();
            }
            __instance.listPath = files;
            __instance.dicNode.Clear();
            for (int j = 0; j < __instance.listPath.Count; j++)
            {
                GameObject gameObject = UnityEngine.Object.Instantiate(__instance.prefabNode);
                gameObject.transform.SetParent(__instance.transformRoot, false);
                StudioNode component = gameObject.GetComponent <StudioNode>();
                component.active = true;
                int no = j;
                component.addOnClick = delegate
                {
                    __instance.OnClickSelect(no);
                };
                component.text = PauseCtrl.LoadName(__instance.listPath[j]);
                __instance.dicNode.Add(j, component);
            }
            return(false);
        }
예제 #10
0
    // Use this for initialization
    void Start()
    {
        cointrans          = GameObject.FindGameObjectWithTag("coinuionlefttop").GetComponent <Transform>();
        coinrender         = GameObject.FindGameObjectWithTag("coinuionlefttop").GetComponent <Renderer>();
        numberrender       = GameObject.FindGameObjectWithTag("cointextuionlefttop").GetComponent <MeshRenderer>();
        addsubnumberrender = GameObject.Find("AddOrSubCoinsText").GetComponent <MeshRenderer>();
        gep  = GameObject.FindGameObjectWithTag("station").GetComponent <GiveEnergy2Player>();
        cdp  = GameObject.FindGameObjectWithTag("stationpoint").GetComponent <CalDistancePlayer>();
        cd   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharacterData>();
        cm   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <CharMove>();
        sb   = GameObject.Find("SaveButton").GetComponent <SaveButton>();
        asct = GameObject.Find("AddOrSubCoinsText").GetComponent <AddSubCoinsText>();
        pc   = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
        cl   = GameObject.Find("ColForStation").GetComponent <ColforLand>();
        A    = GameObject.FindGameObjectWithTag("legpoint");
        ewb  = GameObject.Find("ExitWButton").GetComponent <ExitWButton>();
        v    = this.transform.position;

        coinrender.material.color         = new Vector4(coinrender.material.color.r, coinrender.material.color.g, coinrender.material.color.b, 0f);
        numberrender.material.color       = new Vector4(numberrender.material.color.r, numberrender.material.color.g, numberrender.material.color.b, 0f);
        addsubnumberrender.material.color = new Vector4(addsubnumberrender.material.color.r, addsubnumberrender.material.color.g, addsubnumberrender.material.color.b, 0f);

        totalcoins = 0;
    }
예제 #11
0
 private void Awake()
 {
     self = this;
 }
예제 #12
0
 void Start()
 {
     AT = A.transform;
     pc = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
 }
예제 #13
0
 // Use this for initialization
 void Start()
 {
     pc = GameObject.FindGameObjectWithTag("Cha1").GetComponent <PauseCtrl>();
     pb = GameObject.Find("PlayButton").GetComponent <PlayButton>();
     ps = GameObject.Find("PauseScreen").GetComponent <PauseScreen>();
 }