public void UseCurrentSkill() { Transform spawnTransform = currentSkill.SkillInfo.MetaData.SpawnPosition == SkillSpawnPosition.Origin ? originSpawnPos : frontSpawnPos; SkillObject skillObject = Instantiate(currentSkill.SkillInfo.SkillPrefab, frontSpawnPos.position, frontSpawnPos.rotation); skillObject.Init(self, currentSkill.SkillInfo); self.OnUseMana(currentSkill.SkillInfo.ManaCost); currentSkill.Start(); }