public void initialize(CharacterInstance followTm, GameLogic.SkillType skillType, Material sharedMaterial) { this.FollowCharacter = followTm; this.Tm.position = followTm.PhysicsBody.Transform.position; this.Tm.rotation = Quaternion.identity; this.SkillType = skillType; for (int i = 0; i < this.Icons.Count; i++) { this.Icons[i].sharedMaterial = sharedMaterial; } }
public StationarySkillUseAiBehaviour(CharacterInstance character, GameLogic.SkillType skillType) { base.Character = character; this.SkillType = skillType; this.m_skillTimer = new ManualTimer(1f / base.Character.AttacksPerSecond(false)); }