void OnGUI() { if (GUI.Button(new Rect(0, 0, 250, 100), "Create Monster")) { MonsterActorV1.CreateMonster(AttTypeDefine.eMonsterType.Cactus1, Vector3.zero, Quaternion.Euler(new Vector3(0, 180, 0)), null, null, AttTypeDefine.eMonsterBehaviourType.Type_BezierLine); } }
IEnumerator GeneratingMonster(UIScene_Game _game) { while (true) { float n = Random.Range(4f, 7f); int m = Random.Range(1, (int)(eMonsterType.Monster_Size + 1)); eMonsterType type = (eMonsterType)m; MonsterActorV1.CreateMonster(type, transform.position, transform.rotation, _game.HitMonster, _game.MissMonster, m_eType); yield return(new WaitForSeconds(n)); } }
void Awake() { monster = MonsterActorV1.CreateMonster(eMonsterType.Cactus1, Vector3.zero, Quaternion.identity); monster.EState = eMonsterState.Monster_Null; monster.UI_BasePlayerInfos.OnStart((BasePlayer)monster); }