Beispiel #1
0
                } // end CreateInstance

                private DemonBoss(string id, Vector3 position) : base(id, Object.Instantiate(ResourcesTool.LoadPrefab(id))) {
                    gameObject.layer = LayerConfig.NPC;
                    transform.position = position;
                    transform.rotation = Quaternion.identity;
                    m_info = new NPCharacterInfo(config.name, this);
                    m_avatar = new DemonBossAvatar(id, gameObject.AddComponent<Animation>());
                    m_surface = new CharacterSurface(transform.GetComponentInChildren<SkinnedMeshRenderer>());
                    m_skill = new CharacterSkill(this);
                    m_fsm = new DemonBossFSM(this);
                    m_skill.PushSkill(DemonSkill_1.ID);
                } // end DemonBoss