void Awake() { instance = this; hitPos = HitPos.instance; BP = BulletPool.instance; InitializeProperties(); }
public void AddMove(Command move, HitPos hitPosition, int damage, CrushProp crushProperty = CrushProp.None, PositionProp positionProperty = PositionProp.Stand, PositionProp enemyPositionProperty = PositionProp.Stand) { Commands.Add(move); HitPositions.Add(hitPosition); Damages.Add(damage); CrushProperties.Add(crushProperty); PositionProperties.Add(positionProperty); }
void Start() { EX = ExBullet.instance; hitPos = HitPos.instance; Combine(); SkillData.Add("qqq", QQQ); SkillData.Add("qqw", QQW); SkillData.Add("qqe", QQE); SkillData.Add("wwe", WWE); SkillData.Add("wwq", WWQ); SkillData.Add("eeq", EEQ); SkillData.Add("eee", EEE); SkillData.Add("eew", EEW); //把写好的技能加到字典里面 }
Vector3 mousePositionInWorld; //将点击屏幕的屏幕坐标转换为世界坐标 void Awake() { instance = this; Physics2D.queriesStartInColliders = false; }
void Start() { hitPos = HitPos.instance; rb = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); }