예제 #1
0
 public ScreenDamageInfo(GameCharacterController cc, string message)
 {
     TargetCC       = cc;
     DamageMessage  = message;
     StartTimeStamp = NativeEngineHelper.GetTimeSeconds();
     CountTime      = 0;
     Scale          = 1.0f;
 }
예제 #2
0
        public void PushHitElement(GameCharacterController cc, S2C_SpellHit hit)
        {
            string message = FormatSpellHitMessage(hit);

            if (!string.IsNullOrEmpty(message))
            {
                ScreenDamageInfo info   = new ScreenDamageInfo(cc, message);
                Rect             fontRC = font.MeasureString(info.DamageMessage, DrawTextFormat.Center);
                info.InitSize = new Vector2(fontRC.Width, fontRC.Height);
                damageInfos.Add(info);
            }
        }
 public SpecialMove_SpellCasting(GameCharacterController owner)
     : base(owner)
 {
 }
예제 #4
0
 public AnimMeshAvatar(GameCharacterController controller)
 {
     characterControllerRef = new WeakReference(controller);
 }
예제 #5
0
 public SpecialMove_TakeDamage(GameCharacterController owner)
     : base(owner)
 {
 }
예제 #6
0
 protected SpecialMoveBase(GameCharacterController owner)
 {
     SpeedModifier = 1.0f;
     ownerCCRef    = new WeakReference(owner);
 }
예제 #7
0
 public SpecialMove_Dead(GameCharacterController owner)
     : base(owner)
 {
     DisableMovement = true;
     DisableRotation = true;
 }
 public SpecialMove_SpellPrepare(GameCharacterController owner)
     : base(owner)
 {
 }