Beispiel #1
0
    private void OnCollisionEnter(Collision collision)
    {
        Icon       collidingIcon       = collision.gameObject.GetComponent <Icon>();
        SacredIcon collidingSacredIcon = collision.gameObject.GetComponent <SacredIcon>();

        if (collidingIcon != null)
        {
            Glyph collidingGlyph = collidingIcon.Glyph();
            if (collidingGlyph.Category() == Glyph.Categories.situation && episode == null)
            {
                Stage.instance.StartEpisode(this, collidingIcon);
            }
            if (episode != null)
            {
                episode.BindIcon(collidingIcon);
            }
        }
        if (collidingSacredIcon != null)
        {
            if (episode != null && collidingSacredIcon.Episode() == null)
            {
                episode.BindIcon(collidingSacredIcon);
            }
        }
    }
Beispiel #2
0
    public void OnCollisionEnter(Collision collision)
    {
        Icon collidingIcon = collision.gameObject.GetComponent <Icon>();

        if (collidingIcon != null)
        {
            Stage.instance.OnIconCollision(this, collidingIcon);
            if (episode != null)
            {
                episode.BindIcon(collidingIcon);
            }
        }
    }