public TestSceneHitExplosion()
 {
     Add(explosion = new HitExplosion());
     AddStep("Explode", () =>
     {
         explosion.Explode();
     });
 }
Exemple #2
0
    void Start()
    {
        m_bommer    = FindObjectOfType <BommerController>();
        m_playerC   = FindObjectOfType <PlayerContoller>();
        m_rigidbody = GetComponent <Rigidbody2D>();
        m_hit       = FindObjectOfType <HitExplosion>();

        m_player    = GameObject.Find("player").gameObject;
        m_hitObject = transform.GetChild(0).gameObject;

        m_hitObject.SetActive(false);

        Vector2 vector = m_player.transform.position - this.transform.position;

        m_rigidbody.AddForce(vector, ForceMode2D.Impulse);
        Invoke("Explosion", 3.0f);
    }
Exemple #3
0
        public override void OnJudgement(DrawableHitObject <OsuHitObject, OsuJudgementInfo> judgedObject)
        {
            HitExplosion explosion = new HitExplosion(judgedObject.Judgement, judgedObject.HitObject);

            judgementLayer.Add(explosion);
        }
Exemple #4
0
        private void judgement(DrawableHitObject h, JudgementInfo j)
        {
            HitExplosion explosion = new HitExplosion((OsuJudgementInfo)j, (OsuHitObject)h.HitObject);

            judgementLayer.Add(explosion);
        }