コード例 #1
0
    public void ExplodeOther()
    {
        Collisions col = GetComponent <Collisions>();

        if (col == null)
        {
            return;
        }
        Explode exp = col.lastCollided.GetComponent <Explode>();

        if (exp == null)
        {
            return;
        }
        exp.ExplodeSelf();
    }