void Start() { hit = false; sleepGauge = GameObject.Find("ScriptController").GetComponent <SleepGageScript>(); /*旧モデルプレイヤー*/ //obj.Add(GameObject.Find("Player_LeftHand1")); //0 //obj.Add(GameObject.Find("Player_LeftHand2")); //1 //obj.Add(GameObject.Find("Player_RightHand1")); //2 //obj.Add(GameObject.Find("Player_RightHand2")); //3 //obj.Add(GameObject.Find("Player_LeftLeg1")); //4 //obj.Add(GameObject.Find("Player_LeftLeg2")); //5 //obj.Add(GameObject.Find("Player_RightLeg1")); //6 //obj.Add(GameObject.Find("Player_RightLeg2")); //7 //obj.Add(GameObject.Find("Player_Body")); //8 //obj.Add(GameObject.Find("Player_Head")); //9 /*新プレイヤーモデル*/ obj.Add(GameObject.Find("mixamorig:LeftUpLeg")); //0 obj.Add(GameObject.Find("mixamorig:LeftLeg")); //1 obj.Add(GameObject.Find("mixamorig:RightUpLeg")); //2 obj.Add(GameObject.Find("mixamorig:RightLeg")); //3 obj.Add(GameObject.Find("mixamorig:LeftForeArm")); //4 obj.Add(GameObject.Find("mixamorig:LeftArm")); //5 obj.Add(GameObject.Find("mixamorig:RightForeArm")); //6 obj.Add(GameObject.Find("mixamorig:RightArm")); //7 obj.Add(GameObject.Find("mixamorig:Spine")); //8 obj.Add(GameObject.Find("mixamorig:Head")); //9 obj.Add(GameObject.Find("mixamorig:Spine1")); //10 obj.Add(GameObject.Find("mixamorig:Spine2")); //11 }
void Start() { sleepGauge = GameObject.Find("ScriptController").GetComponent <SleepGageScript>(); player = GetComponent <PlayerScript>(); lifeCnt = 3; //3秒 Cnt = 0; }
void Start() { sleepGageScript_ = GameObject.Find("ScriptController").GetComponent <SleepGageScript>(); clock_ = GameObject.Find("Clock").GetComponent <Clock>(); scenemanager_ = GameObject.FindGameObjectWithTag("Scenemanager").GetComponent <Scene_manager>(); alarmtime_ = GameObject.Find("SoundController").GetComponent <SoundsManager>().alarm; Gamestatus_ = Gamestatus.Play_bfor; }
void Start() { enemy_Top = GameObject.Find("Enemy_Top_mixamorig:Hips"); enemy_Bottom = GameObject.Find("Enemy_Bottom_mixamorig:Hips"); //エネミー回転情報初期化 IsRotation_Top = Rotation_Top.None; IsRotation_Bottom = Rotation_Bottom.None; /*UdEnemyManageの移植Start*/ #region upE = enemy_Top.transform.position; downE = enemy_Bottom.transform.position; topEnemyhit = 0; downEnemeyHit = 0; topCnt = 0; downCnt = 0; soundsManager = GameObject.FindGameObjectWithTag("SoundsManager").GetComponent <SoundsManager>(); #endregion sleepGauge = GetComponent <SleepGageScript>(); }
void Start() { hit = false; sleepGauge = GameObject.Find("ScriptController").GetComponent <SleepGageScript>(); /*新プレイヤーモデル*/ obj.Add(GameObject.Find("Player_mixamorig:LeftUpLeg")); //0 obj.Add(GameObject.Find("Player_mixamorig:LeftLeg")); //1 obj.Add(GameObject.Find("Player_mixamorig:RightUpLeg")); //2 obj.Add(GameObject.Find("Player_mixamorig:RightLeg")); //3 obj.Add(GameObject.Find("Player_mixamorig:LeftForeArm")); //4 obj.Add(GameObject.Find("Player_mixamorig:LeftArm")); //5 obj.Add(GameObject.Find("Player_mixamorig:RightForeArm")); //6 obj.Add(GameObject.Find("Player_mixamorig:RightArm")); //7 obj.Add(GameObject.Find("Player_mixamorig:Spine")); //8 obj.Add(GameObject.Find("Player_mixamorig:Head")); //9 obj.Add(GameObject.Find("Player_mixamorig:Spine1")); //10 obj.Add(GameObject.Find("Player_mixamorig:Spine2")); //11 obj.Add(GameObject.Find("Player_mixamorig:Hips")); //12 obj.Add(GameObject.Find("Player_mixamorig:LeftShoulder")); //13 obj.Add(GameObject.Find("Player_mixamorig:RightShoulder")); //14 }
void Start() { scenemanager_ = GameObject.FindGameObjectWithTag("Scenemanager").GetComponent <Scene_manager>(); sleepGageScript_ = GameObject.Find("ScriptController").GetComponent <SleepGageScript>(); clock_ = GameObject.Find("Clock").GetComponent <Clock>(); }