Beispiel #1
0
 void Awake()
 {
     instance = this;
     hitPos   = HitPos.instance;
     BP       = BulletPool.instance;
     InitializeProperties();
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);       //把写好的技能加到字典里面
 }
Beispiel #4
0
 Vector3 mousePositionInWorld;                //将点击屏幕的屏幕坐标转换为世界坐标
 void Awake()
 {
     instance = this;
     Physics2D.queriesStartInColliders = false;
 }
Beispiel #5
0
 void Start()
 {
     hitPos = HitPos.instance;
     rb     = GetComponent <Rigidbody2D>();
     anim   = GetComponent <Animator>();
 }