Example #1
0
        public void OnAttack2(Transform tf)
        {
            float h = 1f;
            float r = 0.5f;
            CharacterBehaviour ch = tf.GetComponent <CharacterBehaviour>();

            if (ch)
            {
                CharacterController chc = tf.GetComponent <CharacterController>();
                h = chc.height;
                r = chc.radius;
            }

            MakeAttack(tf, h, r * 1.5f, WeaponInfo.Damage * 1.5f, true);
        }
Example #2
0
        public void OnAttack1(Transform tf)
        {
            float h = 1f;
            float r = 0.5f;
            CharacterBehaviour ch = tf.GetComponent <CharacterBehaviour>();

            if (ch)
            {
                CharacterController chc = tf.GetComponent <CharacterController>();
                h = chc.height;
                r = chc.radius;
            }

            MakeAttack(tf, h, r, WeaponInfo.Damage + DemoStage.Main.AddPower, false);
        }
Example #3
0
        public void OnAttack2(Transform tf)
        {
            float h = 1f;
            float r = 0.5f;
            CharacterBehaviour ch = tf.GetComponent <CharacterBehaviour>();

            if (ch)
            {
                CharacterController chc = tf.GetComponent <CharacterController>();
                h = chc.height;
                r = chc.radius;
            }

            float addDamage = 0f;

            if (DemoStage.Main.powerUpCount > 0)
            {
                addDamage = 100f;
                DemoStage.Main.powerUpCount--;
            }

            MakeAttack(tf, h, r * 1.5f, WeaponInfo.Damage * 1.5f + addDamage, true);
//            MakeAttack(tf, h, r * 1.5f, WeaponInfo.Damage * 1.5f + DemoStage.Main.GetWeaponPower2(), true);
        }