Пример #1
0
        /// <summary>
        /// Initialize this gambit. find the corresponding skill
        /// </summary>
        public void Initialize()
        {
            SkillCollection skillCollection = Owner.GetComponent <SkillCollection> ();

            if (skillCollection != null)
            {
                Skill = skillCollection.GetSkill <Skill> (SkillId);
                if (Skill == null)
                {
                    Debug.LogWarning("Can't find the skill");
                }
            }
            else
            {
                Debug.LogError("No skill collection attached to the owner of this gambit!");
            }
        }