예제 #1
0
    private void OnPlayerFireAction(ExPlayerFireAction e)
    {
        var      newBullet    = (GameObject)GameObject.Instantiate(Bullet, e.position, new Quaternion());
        ExBullet bulletScript = newBullet.GetOrAddComponent <ExBullet>();

        bulletScript.FireBullet(e.time, e.position);
    }
예제 #2
0
 void Awake()
 {
     instance = this;
     hitPos   = HitPos.instance;
     BP       = BulletPool.instance;
     InitializeProperties();
 }
예제 #3
0
 void Awake()
 {
     EX = ExBullet.instance;
     Combine();
     UseSkill.Add("eeq", EEQ);
     UseSkill.Add("qqq", QQQ);
     UseSkill.Add("eew", EEW);       //把写好的技能加到字典里面
 }
예제 #4
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);       //把写好的技能加到字典里面
 }