37 lines
975 B
C#
37 lines
975 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BF
|
|
{
|
|
public enum BattleControlType {
|
|
Default = 0,
|
|
Hero,
|
|
Monster,
|
|
Bullet,
|
|
Item,
|
|
HalloweenSkillItem,
|
|
HalloweenEventItem
|
|
}
|
|
public class BattleControlBase : MonoBehaviour
|
|
{
|
|
[System.NonSerialized]
|
|
public bool IsCollisionEnabled = true;
|
|
[System.NonSerialized]
|
|
public bool WaitRemove = false;
|
|
[System.NonSerialized]
|
|
public int Side = 0;
|
|
[System.NonSerialized]
|
|
public string Res = string.Empty;
|
|
[System.NonSerialized]
|
|
public bool IsInCollision = false;
|
|
private Vector2 vector2A = Vector2.zero;
|
|
private Vector2 vector2B = Vector2.zero;
|
|
public virtual BattleControlType ControlType { get {return BattleControlType.Default;} }
|
|
public virtual void AddExp(int exp) { }
|
|
public virtual void AddHpPercent(double percent) { }
|
|
public virtual void AddGold(int count) { }
|
|
public virtual void OnHitBack(float distance, Vector3 atkerPos) {}
|
|
}
|
|
}
|