Exemplo n.º 1
0
    // オブジェクトクリア
    protected void ObjectClear(GameObject obj)
    {
        Transform lift = obj.transform.Find("LiftObject");

        if (lift.childCount == 0)
        {
            return;
        }

        Transform   child   = lift.GetChild(0);
        StageObject liftObj = child.GetComponent <StageObject>();

        if (liftObj == null)
        {
            return;
        }

        liftObj.ClearObject();
    }