コード例 #1
0
    public void checkChildStatuses()
    {
        bool dropAll = true;

        foreach (GameObject morp in morpsConnectedList)
        {
            AlienBase morpScript = morp.GetComponent <AlienBase>();
            if (morpScript.getIsHeld() || morpScript.getIsOnTable())
            {
                dropAll = false;
                break;
            }
        }
        if (dropAll)
        {
            // StartCoroutine(dropMultiMorp());
            alienDropped.Raise();
            Destroy(gameObject);
        }
    }