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