Exemple #1
0
        public override void Start()
        {
            animations = new Animations
            {
                Walk = "RunCycle",
                Idle = "Idle_1",
                Attack = "Attack_1",
                GetHit = "GetHit",
                Die = "Die"
            };

            Abilities = new Attack[3];
            Abilities[0] = new Attack
            {
                Name = "Attack 1",
                Animation = "Attack_1",
                Damage = 10
            };
            Abilities[1] = new Attack
            {
                Name = "Attack 2",
                Animation = "Attack_2",
                Damage = 15
            };
            Abilities[2] = new Attack
            {
                Name = "Attack 3",
                Animation = "Attack_3",
                Damage = 20
            };
        }
Exemple #2
0
        public override void Start()
        {
            Name = "Ghoul";
            animations = new Animations
            {
                Walk = "walk",
                Run = "run",
                Attack = "attack1",
                Die = "die",
                GetHit = "hitleft",
                Idle = "idle"
            };

            base.Start();
        }